mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-21 00:00:10 +02:00
Clarify what NoopWaker does (#819)
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user