Skip to content

Commit b981b3e

Browse files
committed
chore: add and !Sync impls for LocalWaker as a stability guarantee.
1 parent 34179f6 commit b981b3e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/src/task/wake.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,3 +787,8 @@ impl fmt::Debug for LocalWaker {
787787
.finish()
788788
}
789789
}
790+
791+
#[unstable(feature = "local_waker", issue = "118959")]
792+
impl !Send for LocalWaker {}
793+
#[unstable(feature = "local_waker", issue = "118959")]
794+
impl !Sync for LocalWaker {}

0 commit comments

Comments
 (0)