This commit is contained in:
Pat Hickey
2021-05-06 11:20:38 -07:00
parent f3ffd74566
commit 76be1959c4

View File

@@ -28,7 +28,8 @@ impl<'a, T> Future for FirstReady<'a, T> {
match f.as_mut().poll(cx) {
FPoll::Ready(r) => match result {
// 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 => {
result = FPoll::Ready(r);
}