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

Name

Description

ew

an exception_wrapper object

Created with MrDocs