C/C++ API Reference
Loading...
Searching...
No Matches
pw::async2::SendReservation< T > Class Template Reference

Overview

template<typename T>
class pw::async2::SendReservation< T >

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
 
SendReservationoperator= (const SendReservation &other)=delete
 
 SendReservation (SendReservation &&other)
 
SendReservationoperator= (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 >
 

The documentation for this class was generated from the following file: