folly::coro::make_now_task

Make a now_task that trivially returns a value.

Synopsis

Declared in <folly/coro/safe/NowTask.h>

template<class T>
now_task<T>
make_now_task(T t);

Return Value

A now_task that completes with the given value.

Parameters

NameDescription
tThe value to return from the task.