Skip to content

Commit 445b416

Browse files
author
Tyler Neely
committed
Improve comment on the blocking threadpool
1 parent 81fa1d4 commit 445b416

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/task/blocking.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,9 @@ fn schedule(t: async_task::Task<()>) {
8383
// NICEEEE
8484
}
8585
Err(crossbeam::channel::TrySendError::Full(t)) => {
86-
// We were not able to send to the channel within our
87-
// budget. Try to spin up another thread, and then
88-
// block without a time limit on the submission of
89-
// the task.
86+
// We were not able to send to the channel without
87+
// blocking. Try to spin up another thread and then
88+
// retry sending while blocking.
9089
maybe_create_another_blocking_thread();
9190
POOL.sender.send(t).unwrap()
9291
}

0 commit comments

Comments
 (0)