A class that provides a high-level interface for an executor.  
 More...
#include <io/execution/triggers.hpp>
|  | 
|  | basic_triggers ()=default | 
|  | Default constructor. 
 | 
|  | 
|  | basic_triggers (const basic_triggers &)=delete | 
|  | Deleted copy constructor. 
 | 
|  | 
|  | basic_triggers (basic_triggers &&)=default | 
|  | Default move constructor. 
 | 
|  | 
| template<AllocatorLike Allocator> | 
|  | basic_triggers (const Allocator &alloc=Allocator()) noexcept(noexcept(Allocator())) | 
|  | Construct with an allocator. 
 | 
|  | 
| auto | operator= (const basic_triggers &) -> basic_triggers &=delete | 
|  | Deleted copy assignment operator. 
 | 
|  | 
| auto | operator= (basic_triggers &&) -> basic_triggers &=default | 
|  | Default move assignment operator. 
 | 
|  | 
| template<SocketLike Socket> | 
| auto | push (std::shared_ptr< Socket > socket) -> socket_dialog | 
|  | Constructs a socket_dialogassociated to the executor.
 | 
|  | 
| template<typename... Args> | 
| auto | emplace (Args &&...args) -> socket_dialog | 
|  | In-place constructs a socket_dialogassociated to the executor.
 | 
|  | 
| template<typename... Args> | 
| auto | set (Args &&...args) -> decltype(auto) | 
|  | Sets a completion handler for an event. 
 | 
|  | 
| constexpr auto | wait_for (int interval=-1) -> decltype(auto) | 
|  | Waits for events to occur. 
 | 
|  | 
| constexpr auto | wait () -> decltype(auto) | 
|  | Waits for events to occur. 
 | 
|  | 
| auto | on_empty () -> decltype(auto) | 
|  | Sends a notice when the triggers are empty. 
 | 
|  | 
| auto | get_executor () const noexcept -> std::weak_ptr< executor_type > | 
|  | Gets the executor. 
 | 
|  | 
|  | ~basic_triggers ()=default | 
|  | Default destructor. 
 | 
|  | 
template<Multiplexer Mux>
class io::execution::basic_triggers< Mux >
A class that provides a high-level interface for an executor. 
- Template Parameters
- 
  
  
◆ emplace()
template<Multiplexer Mux> 
template<typename... Args> 
 
In-place constructs a socket_dialog associated to the executor. 
- Template Parameters
- 
  
    | Args | The argument types to be forwarded to the executor. |  
 
- Parameters
- 
  
    | ...args | The arguments to forward to the socket handle constructor. |  
 
- Returns
- A shared pointer to the emplaced socket handle. 
 
 
◆ get_executor()
template<Multiplexer Mux> 
 
Gets the executor. 
- Returns
- A weak pointer to the executor. 
 
 
◆ on_empty()
template<Multiplexer Mux> 
 
Sends a notice when the triggers are empty. 
- Returns
- A sender that notifies when the triggers are empty. 
 
 
◆ push()
template<Multiplexer Mux> 
template<SocketLike Socket> 
 
Constructs a socket_dialog associated to the executor. 
This method can be used to create socket dialogs with a custom allocator.
- Template Parameters
- 
  
    | Socket | The socket like object to use in the socket_dialog. |  
 
- Parameters
- 
  
    | socket | A shared pointer to the socket handle. |  
 
- Returns
- A socket_dialogto be used in asynchronous I/O.
 
 
◆ set()
template<Multiplexer Mux> 
template<typename... Args> 
 
Sets a completion handler for an event. 
- Parameters
- 
  
    | args | The arguments to perfectly forward to the executor. |  
 
- Template Parameters
- 
  
    | Args | The argument types to perfectly forward. |  
 
- Returns
- A sender that will complete when the event occurs. 
 
 
◆ wait()
template<Multiplexer Mux> 
 
Waits for events to occur. 
- Returns
- A sender that will complete when events occur. 
 
 
◆ wait_for()
template<Multiplexer Mux> 
 
Waits for events to occur. 
- Parameters
- 
  
    | interval | The maximum time to wait for, in milliseconds. |  
 
- Returns
- A sender that will complete when events occur. 
 
 
The documentation for this class was generated from the following files:
- /home/runner/work/async-berkeley/async-berkeley/include/io/execution/executor.hpp
- /home/runner/work/async-berkeley/async-berkeley/include/io/execution/triggers.hpp