rmanoka / async-scoped

A scope for async_std and tokio to spawn non-static futures
117 stars 14 forks source link

scope_and_collect should return results in order of submission #29

Closed stepancheg closed 6 months ago

stepancheg commented 7 months ago

scope_and_collect function uses FuturesUnordered under the hood, so it returns futures in no order.

Unordered makes sense when we handle stream, but in collect operation it makes little sense and add complexity on caller side.

(Also scope_and_collect does not document that it returns results unordered).

rmanoka commented 7 months ago

This has been fixed in master, and should be released soon.

rmanoka commented 6 months ago

Done in 0.9.0