Add folly::coro::co_schedule
Summary: Adds a utility that allows a coroutine to reschedule itself back onto its associated executor. This allows coroutines to cooperatively schedule themselves. It also allows a coroutine to force itself to be asynchronous by inserting a `co_await folly::coro::co_schedule;` as the first statement in the coroutine. Reviewed By: andriigrynenko Differential Revision: D15076362 fbshipit-source-id: 4a4a2978519e0709d28a3e1aa8745ee30ddc7751
Showing
Please register or sign in to comment