folly::coro::now_task_with_executor

The executor-bound, immovable counterpart of now_task awaited in place.

Synopsis

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

template<typename T = void>
class [[nodiscard]] now_task_with_executor final

Member Functions

NameDescription
as_unsafe [deprecated]Escape hatch that unwraps this into the unsafe TaskWithExecutor API.

Protected Using Declarations

Name
Unnamed using

Friends

NameDescription
folly::coro::BackgroundTaskA task that runs detached in the background; forward-declared here.

Return Value

NOTE

The return value should not be discarded.