Template Struct as_operation

Struct Documentation

template<typename E, typename R>
struct concore::v1::as_operation

Wrapper that transforms an executor and a receiver into an operation.

This is a convenience wrapper to shortcut the usage of scheduler and sender.

Template Parameters
  • E: The type of the executor; should model executor

  • R: The type of the receiver

This types models the operation_state concept

See

operation_state, executor, receiver, as_invocable, as_sender

Public Types

using executor_type = concore::detail::remove_cvref_t<E>

The type of executor to be used (remove cvref)

using receiver_type = concore::detail::remove_cvref_t<R>

The type of receiver to be used (remove cvref)

Public Functions

as_operation(executor_type e, receiver_type r) noexcept

Constructor.

void start() noexcept

Starts the asynchronous operation.