Basic detachOnCancel helper
Summary: detachOnCancel adapter can be used with Awaitables that don't support active cancellation, but are safely detachable. When the cancellation is requested the adaptor will emit OperationCancelled exception without waiting for the awaitable to complete. This diff also introduces tryAssign helper, similar to Try::operator=, but which handles a case of throwing move constructor. Reviewed By: lewissbaker Differential Revision: D22578847 fbshipit-source-id: cab9998c8c6a709108edefc3d59e6f44792d562f
Showing
Please register or sign in to comment