folly::coro::make_error_now_task

Make a now_task that will trivially yield an exception.

Synopsis

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

template<class T>
now_task<T>
make_error_now_task(exception_wrapper ew);

Return Value

A now_task that completes with the given exception.

Parameters

NameDescription
ewThe exception to yield from the task.