Allow the CancellationToken to propagate through the co_awaitTry() algorithm
Summary: Modify the TrySemiAwaitable adapter so that it customises the co_withCancellation() customisation-point and passes through the CancellationToken to the underlying awaitable (eg. a Task). This fixes code that tries to do the following so that the cancellation token propagates to a Task adapted with co_awaitTry(). ``` co_await co_withCancellation(cancelToken, co_awaitTry(co_foo())); ``` Reviewed By: andriigrynenko Differential Revision: D20443798 fbshipit-source-id: 945e0f98abad4cdef0be29365642006c5687ad5f
Showing
Please register or sign in to comment