Skip to content

Commit

Permalink
Clarify what NoopWaker does (#819)
Browse files Browse the repository at this point in the history
  • Loading branch information
gralpli authored and carllerche committed Jan 2, 2019
1 parent 9e4ddae commit 30f5967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio-async-await/src/compat/backward.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@ unsafe impl UnsafeWake for NoopWaker {
}

unsafe fn wake(&self) {
panic!("NoopWake cannot wake");
unimplemented!("async-await-preview currently only supports futures 0.1. Use the compatibility layer of futures 0.3 instead, if you want to use futures 0.3.");
}
}

0 comments on commit 30f5967

Please sign in to comment.