folly::coro::makeErrorTask

Make a Task that will trivially yield an Exception.

Synopsis

Declared in <folly/coro/Task.h>

template<class T>
Task<T>
makeErrorTask(exception_wrapper ew);

Return Value

a Task that completes with the given exception.

Parameters

NameDescription
ewan exception_wrapper object