A reservation for sending values to a channel, returned from a ReserveSendFuture once space is available in the channel.
The SendReservation must be used immediately once its future resolves. If the reservation object is dropped, its reservation is released and the space is made available for other senders.
Public Member Functions | |
| SendReservation (const SendReservation &other)=delete | |
| SendReservation & | operator= (const SendReservation &other)=delete |
| SendReservation (SendReservation &&other) | |
| SendReservation & | operator= (SendReservation &&other) |
| template<typename... Args> | |
| void | Commit (Args &&... args) |
| Commits a value to a reserved slot. | |
| void | Cancel () |
| Releases the reservation, making the space available for other senders. | |
Friends | |
| class | ReserveSendFuture< T > |
| class | Sender< T > |