Block on a task's execution. Should be called from an Async annotated function. The fiber executing task_wait will block while the task is suspended, and the task's work will be executed inline on the fiber main context.

Synopsis

Declared in <folly/fibers/async/Task.h>

template<typename T>
Async<T>
taskWait(folly::coro::Task<T>&& task);

Return Value

The value produced by the task, wrapped as Async.

Parameters

Name

Description

task

The coroutine task to run to completion.

Created with MrDocs