Make folly::coro::Baton awaitable
Summary: Remove the `waitAsync()` method from `folly::coro::Baton` and provide an `operator co_await()` instead. This moves the method to be consistent with other folly::coro APIs that use the convention of prefixing the method with co_ when the return-value is an awaitable type. In this case it seemed better to allow `co_await baton;` rather than use the potentially confusing `co_await baton.co_wait()` method as the `co_wait` method name seemed too close to and easily confused with the `co_await` keyword. Reviewed By: andriigrynenko Differential Revision: D9308773 fbshipit-source-id: 922793a83306e5b1e5e60c69b47b98a9bdd17d8d
Showing
Please register or sign in to comment