Add async-stack support to co_awaitTry()
Summary: Updates the co_awaitTry() adapters to support the co_withAsyncStack() CPO. This required updating the WithAsyncStackAwaitable to also support co_awaitTry() but having its wrapper awaiter type also forward through the .await_resume_try() method if one exists. Modified the is_awaiter trait check to no longer check for a valid await_suspend() call as some awaiters returned from co_withAsyncStack() now require coroutine_handle<Promise> and no longer accept the coroutine_handle<void> parameter previously checked by the trait. Reviewed By: andriigrynenko Differential Revision: D24499833 fbshipit-source-id: fdcb99a2b85c4235bcd4b5dcc12cf79cb414f034
Showing
Please register or sign in to comment