You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix co_nothrow in now_task, add getErrorHandle support to TaskWrapper
Summary:
Previously, `TaskWrapper` didn't support the `ExtendedCoroutineHandle` protocol called `getErrorHandle`, so `co_nothrow` had no effect in those coros. That is, `co_await co_nothrow()` would still throw.
This adds a test for the broken behavior, fixes `TaskWrapper` to implement the protocol, which causes the test to pass.
The new `if constexpr` branches in `await_transform` are covered by existing `NoexceptTest.cpp` coverage of `co_nothrow(noexceptAwaitable())`.
Reviewed By: ispeters
Differential Revision: D82927064
fbshipit-source-id: f5eb73d6cc97bcaadf2b1811f5d5d59d9af68ff6
0 commit comments