Template Class ValueTask

Inheritance Relationships

Base Type

Class Documentation

template<typename T>
class ValueTask : public exathread::Task

Coroutine return type for value-returning functions.

Note

Set this as your submitted function’s return type if it returns something other than void and wants to use yield operations

Template Parameters:

T – The return type of your function

Public Types

using promise_type = details::ValuePromise<T>

Public Functions

inline explicit ValueTask(std::coroutine_handle<details::Promise> h)
inline ValueTask(Task &&t)