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 6a69c0f commit dae0b87Copy full SHA for dae0b87
futures-util/src/task/arc_wake.rs
@@ -8,7 +8,9 @@ use alloc::sync::Arc;
8
/// can be converted into `Waker` objects.
9
/// Those Wakers can be used to signal executors that a task it owns
10
/// is ready to be `poll`ed again.
11
-pub trait ArcWake {
+// Note: Send + Sync required because `Arc<T>` doesn't automatically imply
12
+// those bounds, but `Waker` implements them.
13
+pub trait ArcWake: Send + Sync {
14
/// Indicates that the associated task is ready to make progress and should
15
/// be `poll`ed.
16
///
0 commit comments