• Eric Niebler's avatar
    add TypedSender support to pushmi, pave the way for Awaitable senders · 1c1fbc3c
    Eric Niebler authored
    Summary:
    * The sender concepts are now defined in terms of a `sender_traits` class template, in which the user can specify additional sender metadata like what values and errors it sends to the Receiver. This will make it possible to automatically make Senders awaitable from within coroutines.
    
    * Remove the now-unused is_sender<>, is_single<>, and is_many<> properties.
    
    * Define a `SingleSender` concept and a `TypedSender` concept.
    
    * Define a `pushmi::sender` class template from which a Sender can inherit to declare the sender category (single/many/flow), and the types of the values and errors.
    
    Reviewed By: kirkshoop
    
    Differential Revision: D14631770
    
    fbshipit-source-id: afcfd10bcd4e0e7ba224ea2c713d7fa92249ab7f
    1c1fbc3c
pool.h 2.03 KB