Skip to content

Commit 5abffa7

Browse files
committed
comment!
1 parent d58453a commit 5abffa7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/runtime/block_on.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ where
4949
res
5050
}
5151

52+
/// This waker is used in the Context of block_on. If a Future executing in
53+
/// the block_on calls context.wake(), it sets this boolean state so that
54+
/// block_on's Future is polled again immediately, rather than waiting for
55+
/// an external (WASI pollable) event before polling again.
5256
struct RootWaker {
5357
wake: AtomicBool,
5458
}

0 commit comments

Comments
 (0)