Class PlatformDispatcher::Submission

Nested Relationships

This class is a nested type of Class PlatformDispatcher.

Class Documentation

class Submission

Declaration: final

Copyable submission endpoint, with no borrowed dispatcher or engine pointer.

Queueing always defers execution, including submissions from the owner thread. Rejection throws failed_operation; accepted callback failures reach their future. Submission is thread-safe while the endpoint remains alive. Own callable captures through execution/cancellation; reference captures/results remain the caller’s lifetime responsibility. Do not wait from the execution owner.

Public Functions

template<typename Work>
inline std::future<std::invoke_result_t<std::decay_t<Work>&, Context&>> submit(Work &&work) const

Declaration: [[nodiscard]]