We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea06e6c commit 7edecd3Copy full SHA for 7edecd3
src/lib.rs
@@ -612,6 +612,7 @@ impl FailPoint {
612
613
fn set_actions(&self, actions_str: &str, actions: Vec<Action>) {
614
loop {
615
+ #[cfg(feature = "async")]
616
self.async_pause_notify.notify_waiters();
617
// TODO: maybe busy waiting here.
618
match self.actions.try_write() {
@@ -674,7 +675,10 @@ impl FailPoint {
674
675
Task::Callback(f) => {
676
f.run();
677
}
- Task::CallbackAsync(_) => unreachable!(),
678
679
+ Task::CallbackAsync(_) => panic!(
680
+ "to use async callback, please enable `async` feature and use `async_fail_point`"
681
+ ),
682
683
None
684
0 commit comments