• Eric Niebler's avatar
    make awaitables sender and make single-typed senders awaitable · dad6c2b8
    Eric Niebler authored
    Summary:
    Add coroutine support to pushmi by making all sender types that satisfy the `SingleTypedSender` concept awaitable; that is, you can get their result by `co_await`-ing them in a coroutine.
    
    In addition, all Awaitable types automatically satisfy the `SingleTypedSender` concept; that is, you can pass them to `pushmi::submit` along with a `Receiver` that is invoked with the result of `co_await`-ing the awaitable.
    
    Reviewed By: kirkshoop
    
    Differential Revision: D14688373
    
    fbshipit-source-id: 8598b303aebcaa070033868abd440245c165bd73
    dad6c2b8
forwards.h 3.46 KB