ThreadSchedule 2.0.0
Modern C++ thread management library
Loading...
Searching...
No Matches
task.hpp File Reference

Coroutine task, sync_wait, and pool helpers schedule_on / run_on. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Detailed Description

Coroutine task, sync_wait, and pool helpers schedule_on / run_on.

task is lazy until co_await or sync_wait. For how work moves onto a thread pool and what nested schedule_on does, see struct schedule_on and function template run_on below (C++20 only).

Requires C++20 coroutine support.

Definition in file task.hpp.