Replace AwaitWraper with new co_viaIfAsync operator
Summary: Refactored the `AwaitWrapper` class to expose its functionality as a new `co_viaIfAsync()` operator that returns a `ViaIfAsyncAwaitable<Awaitable>` type. The `folly::coro::Task` promise_type now delegates wrapping the awaited operations to the new `co_viaIfAsync()` operator. This allows SemiAwaitable types to customise how they are awaited from within a folly::coro::Task coroutine by providing an overload for `co_viaIfAsync()` rather than intrusively modifying the `folly::coro::Task` implementation. Reviewed By: andriigrynenko Differential Revision: D9983074 fbshipit-source-id: 87d80001879ac7aa3be473339ba259229dafc262
Showing
Please register or sign in to comment