@@ -16,24 +16,24 @@ use crate::sync::Arc;
16
16
/// used to wake up a task is stored in an [`Arc`]. Some executors (especially
17
17
/// those for embedded systems) cannot use this API, which is why [`RawWaker`]
18
18
/// exists as an alternative for those systems.
19
- #[ unstable( feature = "wake_trait" , issue = "0 " ) ]
19
+ #[ unstable( feature = "wake_trait" , issue = "69912 " ) ]
20
20
pub trait Wake {
21
21
/// Wake this task.
22
- #[ unstable( feature = "wake_trait" , issue = "0 " ) ]
22
+ #[ unstable( feature = "wake_trait" , issue = "69912 " ) ]
23
23
fn wake ( self : Arc < Self > ) ;
24
24
25
25
/// Wake this task without consuming the waker.
26
26
///
27
27
/// If an executor supports a cheaper way to wake without consuming the
28
28
/// waker, it should override this method. By default, it clones the
29
29
/// [`Arc`] and calls `wake` on the clone.
30
- #[ unstable( feature = "wake_trait" , issue = "0 " ) ]
30
+ #[ unstable( feature = "wake_trait" , issue = "69912 " ) ]
31
31
fn wake_by_ref ( self : & Arc < Self > ) {
32
32
self . clone ( ) . wake ( ) ;
33
33
}
34
34
}
35
35
36
- #[ unstable( feature = "wake_trait" , issue = "0 " ) ]
36
+ #[ unstable( feature = "wake_trait" , issue = "69912 " ) ]
37
37
impl < W : Wake + Send + Sync + ' static > From < Arc < W > > for Waker {
38
38
fn from ( waker : Arc < W > ) -> Waker {
39
39
// SAFETY: This is safe because raw_waker safely constructs
@@ -42,7 +42,7 @@ impl<W: Wake + Send + Sync + 'static> From<Arc<W>> for Waker {
42
42
}
43
43
}
44
44
45
- #[ unstable( feature = "wake_trait" , issue = "0 " ) ]
45
+ #[ unstable( feature = "wake_trait" , issue = "69912 " ) ]
46
46
impl < W : Wake + Send + Sync + ' static > From < Arc < W > > for RawWaker {
47
47
fn from ( waker : Arc < W > ) -> RawWaker {
48
48
raw_waker ( waker)
0 commit comments