An executor that uses a multiplexer to wait for events.
More...
#include <io/execution/executor.hpp>
Inherits io::execution::Mux.
|
| template<typename... Args> |
| auto | set (Args &&...args) -> decltype(auto) |
| | Sets a completion handler for an event.
|
| |
| auto | on_empty () -> decltype(auto) |
| | Sends a notice when the executor is empty.
|
| |
|
| template<SocketLike Socket> |
| static auto | push (std::shared_ptr< Socket > socket) -> decltype(auto) |
| | Configures the socket to be non-blocking.
|
| |
| template<SocketLike Socket> |
| static auto | push (Socket &&handle) -> decltype(auto) |
| | Pushes a socket handle to the collection.
|
| |
| template<typename... Args> |
| static auto | emplace (Args &&...args) -> std::shared_ptr< socket_handle > |
| | Emplaces a socket handle in the collection.
|
| |
|
|
class | basic_triggers< Mux > |
| |
template<Multiplexer Mux>
class io::execution::executor< Mux >
An executor that uses a multiplexer to wait for events.
- Template Parameters
-
◆ emplace()
template<Multiplexer Mux>
template<typename... Args>
Emplaces a socket handle in the collection.
- Parameters
-
| ...args | The arguments to forward to the socket handle constructor. |
- Returns
- A shared pointer to the emplaced socket handle.
◆ on_empty()
template<Multiplexer Mux>
Sends a notice when the executor is empty.
- Returns
- A sender that notifies when the executor is empty.
◆ push() [1/2]
template<Multiplexer Mux>
template<SocketLike Socket>
Pushes a socket handle to the collection.
- Parameters
-
| handle | The socket handle to push. |
- Returns
- A weak pointer to the pushed socket handle.
◆ push() [2/2]
template<Multiplexer Mux>
template<SocketLike Socket>
Configures the socket to be non-blocking.
This overload can be used to create socket_dialogs using a custom allocator for the socket handle.
- Template Parameters
-
| Socket | A socket handle like object. |
- Parameters
-
| socket | A shared pointer to a non-blocking socket. |
- Returns
- A shared pointer to a non-blocking socket.
◆ set()
template<Multiplexer Mux>
template<typename... Args>
Sets a completion handler for an event.
- Parameters
-
| args | The arguments to forward to the multiplexer. |
- Template Parameters
-
| Args | The types of the perfectly forwarded arguments. |
- Returns
- A sender, scoped to the lifetime of the executor.
The documentation for this class was generated from the following file:
- /home/runner/work/async-berkeley/async-berkeley/include/io/execution/executor.hpp