makeTask overloads

Synopses

Declared in <folly/coro/Task.h>

Make a Task that trivially returns with no return value.

Same as makeTask(). See Unit

Make a task that trivially returns a value.

template<class T>
Task<T>
makeTask(T t);

Return Value

  • an empty Task<void>.

  • a Task that yields the given value.

Parameters

Name

Description

unit

an ignored Unit value

t

value to be returned by the Task

Created with MrDocs