From 445b4161cbaf6d58c578a243b2a9274fa790acda Mon Sep 17 00:00:00 2001 From: Tyler Neely Date: Fri, 9 Aug 2019 16:40:31 +0200 Subject: [PATCH] Improve comment on the blocking threadpool --- src/task/blocking.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/task/blocking.rs b/src/task/blocking.rs index fe9e39a5..b519cf82 100644 --- a/src/task/blocking.rs +++ b/src/task/blocking.rs @@ -83,10 +83,9 @@ fn schedule(t: async_task::Task<()>) { // NICEEEE } Err(crossbeam::channel::TrySendError::Full(t)) => { - // We were not able to send to the channel within our - // budget. Try to spin up another thread, and then - // block without a time limit on the submission of - // the task. + // We were not able to send to the channel without + // blocking. Try to spin up another thread and then + // retry sending while blocking. maybe_create_another_blocking_thread(); POOL.sender.send(t).unwrap() }