3#include <boost/asio/spawn.hpp>
42 { v.requestStop() } -> std::same_as<void>;
52 { v.cancel() } -> std::same_as<void>;
62 { v.wait() } -> std::same_as<void>;
72 { v.abort() } -> std::same_as<void>;
136 { v.isStopRequested() } -> std::same_as<bool>;
202template <
typename T,
typename... Args>
204 { std::invoke(fn, std::declval<Args>()...) };
217 []<
typename Rep,
typename Period>(
218 std::type_identity<std::chrono::duration<Rep, Period>>
219 ) {}(std::type_identity<std::decay_t<T>>());
230 std::type_identity<std::optional<Type>>
231 ) {}(std::type_identity<std::decay_t<T>>());
248template <
typename T,
typename Erased>
249concept NotSameAs = not std::is_same_v<std::decay_t<T>, Erased>;
257template <
typename T,
typename Erased>
259 requires std::is_rvalue_reference_v<
decltype(t)>;
Checks that decayed T is not of the same type as Erased.
Definition Concepts.hpp:249
Check that T is an r-value and is not the same type as Erased.
Definition Concepts.hpp:258
Specifies the interface for an operation that can be aborted.
Definition Concepts.hpp:71
Specifies the interface for an operation that can be awaited.
Definition Concepts.hpp:61
Specifies the interface for an operation that can be cancelled.
Definition Concepts.hpp:117
Specifies the interface for an entity that can be cancelled.
Definition Concepts.hpp:51
Concept that identifies types derived from ExecutionContextTag.
Definition Concepts.hpp:33
Specifies the interface for an operation that can force-invoked.
Definition Concepts.hpp:99
Specifies the interface for a handler that can be invoked with the specified args.
Definition Concepts.hpp:203
Specifies the interface for a handler that is invocable without a stop token.
Definition Concepts.hpp:192
Specifies the interface for an operation that produces data.
Definition Concepts.hpp:89
Specifies the interface for an operation.
Definition Concepts.hpp:81
Specifies that the type must be some std::duration wrapped in an optional.
Definition Concepts.hpp:240
Specifies the interface for an outcome (promise).
Definition Concepts.hpp:125
Specifies the interface for a simple stop source.
Definition Concepts.hpp:156
Specifies that the type must be some std::duration.
Definition Concepts.hpp:213
Specifies that the type must be some std::optional.
Definition Concepts.hpp:228
Specifies the interface for a provider of stop sources.
Definition Concepts.hpp:174
Specifies the interface for a stop source.
Definition Concepts.hpp:166
Specifies the interface for a stop token.
Definition Concepts.hpp:135
Specifies the interface for an operation that can be stopped.
Definition Concepts.hpp:109
Specifies the interface for an outcome (promise) that can be stopped.
Definition Concepts.hpp:184
Specifies the interface for an entity that can be stopped.
Definition Concepts.hpp:41
Specifies the interface for a stop source that produces tokens from a boost::asio::yield_context.
Definition Concepts.hpp:146
This namespace implements an async framework built on top of execution contexts.
Definition AnyExecutionContext.hpp:18
Tag type for identifying execution context types.
Definition Concepts.hpp:20