46 return impl_.is_cancelled();
53 id() const noexcept ->
std::uint64_t
61 detail::scheduled_task_backend impl_;
70 [[nodiscard]]
static auto
Copyable handle for a cancellable scheduled task.
scheduled_task(scheduled_task &&) noexcept=default
scheduled_task(scheduled_task const &)=default
auto id() const noexcept -> std::uint64_t
Return the backend-assigned task identifier.
friend class scheduled_pool
auto is_cancelled() const noexcept -> bool
Return whether cancellation has been requested/observed.
void cancel()
Request cancellation of the scheduled task.
Aggregates multiple thread_registry_backend instances into a single queryable view.
static auto make(scheduled_task_backend value) -> scheduled_task