mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-07 00:00:08 +02:00
signal: Clarify a comment
This commit is contained in:
committed by
Carl Lerche
parent
955cd2836d
commit
b6bacc1ca3
+4
-2
@@ -267,8 +267,10 @@ impl Driver {
|
|||||||
// has gone away then we can remove that slot.
|
// has gone away then we can remove that slot.
|
||||||
for i in (0..recipients.len()).rev() {
|
for i in (0..recipients.len()).rev() {
|
||||||
// TODO: This thing probably generates unnecessary wakups of
|
// TODO: This thing probably generates unnecessary wakups of
|
||||||
// this task. But let's optimise it later on, when we
|
// this task when `NotReady` is received because we don't
|
||||||
// know this works.
|
// actually want to get woken up to continue sending a
|
||||||
|
// message. Let's optimise it later on though, as we know
|
||||||
|
// this works.
|
||||||
match recipients[i].1.start_send(signum) {
|
match recipients[i].1.start_send(signum) {
|
||||||
Ok(AsyncSink::Ready) => {}
|
Ok(AsyncSink::Ready) => {}
|
||||||
Ok(AsyncSink::NotReady(_)) => {}
|
Ok(AsyncSink::NotReady(_)) => {}
|
||||||
|
|||||||
Reference in New Issue
Block a user