mirror of
https://github.com/async-rs/async-std.git
synced 2025-04-17 22:06:45 +00:00
Improve comment on the blocking threadpool
This commit is contained in:
parent
81fa1d419a
commit
445b4161cb
1 changed files with 3 additions and 4 deletions
|
@ -83,10 +83,9 @@ fn schedule(t: async_task::Task<()>) {
|
||||||
// NICEEEE
|
// NICEEEE
|
||||||
}
|
}
|
||||||
Err(crossbeam::channel::TrySendError::Full(t)) => {
|
Err(crossbeam::channel::TrySendError::Full(t)) => {
|
||||||
// We were not able to send to the channel within our
|
// We were not able to send to the channel without
|
||||||
// budget. Try to spin up another thread, and then
|
// blocking. Try to spin up another thread and then
|
||||||
// block without a time limit on the submission of
|
// retry sending while blocking.
|
||||||
// the task.
|
|
||||||
maybe_create_another_blocking_thread();
|
maybe_create_another_blocking_thread();
|
||||||
POOL.sender.send(t).unwrap()
|
POOL.sender.send(t).unwrap()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue