Make JoinSet::poll_join_next
a public API
#5769
Labels
A-tokio
Area: The main tokio crate
C-feature-request
Category: A feature request.
M-task
Module: tokio/task
Is your feature request related to a problem? Please describe.
We're migrating
deno_core
to useJoinSet
instead ofFuturesUnordered
based on suggestions from @Darksonn.deno_core
has a mainpoll_event_loop
function that responsible for polling all spawned tasks. WithFuturesUnordered
polling them was as simple as:however with
JoinSet
more ceremony (and pinning) is required:Describe the solution you'd like
Make
JoinSet::poll_join_next
API public, which would change the example above to:Describe alternatives you've considered
Keep current API as is without changes.
The text was updated successfully, but these errors were encountered: