Radix Relay
Hybrid mesh communications with Signal Protocol encryption
Loading...
Searching...
No Matches
radix_relay::core::Processor Concept Reference

Concept for types that can be run as processors. More...

#include <processor_runner.hpp>

Concept definition

template<typename T>
concept radix_relay::core::Processor = requires(T proc, std::shared_ptr<boost::asio::cancellation_slot> slot) {
{ proc.run(slot) } -> std::same_as<boost::asio::awaitable<void>>;
}
Concept for types that can be run as processors.

Detailed Description

Concept for types that can be run as processors.

Processors must provide a run() method that returns an awaitable.

Definition at line 23 of file processor_runner.hpp.