Add folly::coro::AsyncGenerator<T>
Summary: The AsyncGenerator<T> class allows you to write a coroutine that asynchronously produces a sequence of values of type T. This has the same executor-affinity behaviour for co_await as for Task<T> except that the executor can change at co_yield points to inherit the executor from the consumer each time a new value is requested. Reviewed By: ericniebler Differential Revision: D14446089 fbshipit-source-id: 710ad922918a135e1fe6eef853410c9a77cc2c28
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment