Skip to content

Commit e7e38c3

Browse files
committed
Add clarifying comments to run_until_stalled
1 parent 589c11b commit e7e38c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

futures-executor/src/local_pool.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,13 @@ impl LocalPool {
256256
/// in the pool will try to make progress.
257257
pub fn run_until_stalled(&mut self) {
258258
run_executor(|cx| match self.poll_pool(cx) {
259+
// The pool is empty.
259260
Poll::Ready(()) => Poll::Ready(()),
260261
Poll::Pending => {
261262
if woken() {
262263
Poll::Pending
263264
} else {
265+
// We're stalled for now.
264266
Poll::Ready(())
265267
}
266268
}

0 commit comments

Comments
 (0)