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

Lazy single-value coroutine (task<T>) and blocking bridge (sync_wait). More...

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

Go to the source code of this file.

Detailed Description

Lazy single-value coroutine (task<T>) and blocking bridge (sync_wait).

A task<T> represents a lazy coroutine that produces exactly one value (or throws). It does not begin execution until it is co_awaited by another coroutine or passed to sync_wait().

Requires C++20 coroutine support.

Definition in file task.hpp.