|
Clio
develop
The XRP Ledger API server.
|
Represents a go-like channel, a multi-producer (Sender) multi-consumer (Receiver) thread-safe data pipe. More...
#include <Channel.hpp>
Static Public Member Functions | |
| static std::pair< Sender, Receiver > | create (auto &&context, std::size_t capacity) |
| Factory function to create channel components. | |
Represents a go-like channel, a multi-producer (Sender) multi-consumer (Receiver) thread-safe data pipe.
| T | The type of data the channel transfers |
|
inlinestatic |
Factory function to create channel components.
| context | A supported context type (either io_context or thread_pool) |
| capacity | Size of the internal buffer on the channel |