make_now_task overloads

Synopses

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

Make a now_task that trivially returns no value

Same as make_now_task(). See Unit

Make a now_task that trivially returns a value.

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

Return Value

  • A now_task that completes with no value.

  • A now_task that completes with the given value.

Parameters

Name

Description

unit

The unit value (unused).

t

The value to return from the task.

Created with MrDocs