• Lewis Baker's avatar
    Fix co_awaitTry() with Task::scheduleOn() · e5676873
    Lewis Baker authored
    Summary:
    Fixes compilation of `co_await co_awaitTry(someTask.scheduleOn(ex))` when
    awaited within other `Task` coroutines by adding the `await_resume_try()`
    method to ViaIfAsyncAwaiter.
    
    Also added some unit-tests for this case.
    
    Reviewed By: andriigrynenko
    
    Differential Revision: D24650827
    
    fbshipit-source-id: 687717d9f73f1fdcfb1f2ff17e4ddca46c16b189
    e5676873
ViaIfAsync.h 17 KB