f
context.waker.wake() и возвращение Poll::Ready. Или, может, немного разный.Size: a a a
f
context.waker.wake() и возвращение Poll::Ready. Или, может, немного разный.f
D
f
if (workDone) {
context.waker().wake()
return Poll::Pending
}if (workDone) {
return Poll::Ready(())
}D
D
f
D
f
if (A.poll().is_ready()) {
context.waker().wake()
}
if (B.poll().is_ready()) {
context.waker().wake()
}
return Poll::Pending
if (A.poll().is_ready()) {
return Poll::Ready(())
}
if (B.poll().is_ready()) {
return Poll::Ready(())
}
return Poll::PendingD
f
D
f
D
select!?f
let a_ready = A.poll().is_ready();
let b_ready = B.poll().is_ready();
if (a_ready || b_ready) {
return Poll::Ready(())
}
return Poll::Pendingf
select!?f
D
f
f