Add yield_value(Try<>) to coro::Task
Summary: Generic code taking in a `Task<void|T>` cannot easily forward the result without throwing exceptions because the `return_value` overload taking a `Try` cannot be added to `Task<void>` which already has `return_void`. Instead we use `yield_value` as we did with `co_error` to make the desired generic code possible. Reviewed By: lewissbaker Differential Revision: D22934887 fbshipit-source-id: ec50de5832f9038d92749bdde2c1d43244288a3c
Showing
Please register or sign in to comment