folly::coro::makeUnorderedAsyncGeneratorFromAwaitable[Try]Range
Summary: Allows waiting for a range of SemiAwaitables while receiving progress incrementally. Often requested as a repeatedly-invokable collectAll. Uses an external AsyncScope to avoid the following sharp edge with using an internal scope (demonstrated in V1 of this diff): if the AsyncGenerator is destroyed without being fully drained we'd have to block on the scope, which can deadlock. Reviewed By: helfman Differential Revision: D25924855 fbshipit-source-id: 46dd7c64d58560f57a7c18e35c159beb984286a7
Showing
Please register or sign in to comment