17struct scheduled_task_access;
53 id() const noexcept ->
std::uint64_t
61 detail::scheduled_task_backend impl_;
68struct scheduled_task_access
70 [[nodiscard]]
static auto
Copyable handle for a cancellable scheduled task.
auto id() const noexcept -> uint64_t
auto is_cancelled() const noexcept -> bool
Scheduler that executes delayed and periodic tasks on worker threads.
scheduled_task(scheduled_task &&) noexcept=default
friend struct detail::scheduled_task_access
scheduled_task(scheduled_task const &)=default
auto id() const noexcept -> std::uint64_t
Return the backend-assigned task identifier.
auto is_cancelled() const noexcept -> bool
Return whether cancellation has been requested/observed.
void cancel()
Request cancellation of the scheduled task.