You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're using FuturesUnordered to race multiple connection futures in order to implement the RFC 8305 Happy Eyeballs spec. Once we make a successful connection, we're supposed to close all the other pending connections in order to free up the resources. We are wrapping our FuturesUnordered in an Option to make sure we can drop any other pending connections as soon as possible.
However, it be simpler if we could just call a FuturesUnordered::clear() to throw away the futures. Likewise, I imagine a SelectAll::clear() could also be useful.
The text was updated successfully, but these errors were encountered:
Thanks! However @ibraheemdev ’s #2415 only implements clear for FuturesUnordered, not SelectAll. Would it be possible to implement clear for it as well?
We're using
FuturesUnordered
to race multiple connection futures in order to implement the RFC 8305 Happy Eyeballs spec. Once we make a successful connection, we're supposed to close all the other pending connections in order to free up the resources. We are wrapping ourFuturesUnordered
in anOption
to make sure we can drop any other pending connections as soon as possible.However, it be simpler if we could just call a
FuturesUnordered::clear()
to throw away the futures. Likewise, I imagine aSelectAll::clear()
could also be useful.The text was updated successfully, but these errors were encountered: