explain!
This commit is contained in:
@@ -28,7 +28,8 @@ impl<'a, T> Future for FirstReady<'a, T> {
|
|||||||
match f.as_mut().poll(cx) {
|
match f.as_mut().poll(cx) {
|
||||||
FPoll::Ready(r) => match result {
|
FPoll::Ready(r) => match result {
|
||||||
// First ready gets to set the result. But, continue the loop so all futures
|
// First ready gets to set the result. But, continue the loop so all futures
|
||||||
// get the opportunity to become ready.
|
// which are ready simultaneously (often on first poll) get to report their
|
||||||
|
// readiness.
|
||||||
FPoll::Pending => {
|
FPoll::Pending => {
|
||||||
result = FPoll::Ready(r);
|
result = FPoll::Ready(r);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user