Clarify what NoopWaker does (#819)

This commit is contained in:
gralpli
2019-01-02 12:29:30 -08:00
committed by Carl Lerche
parent 9e4ddaeaf3
commit 30f59670c8
+1 -1
View File
@@ -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.");
}
}