Schedules async cleanup for any AutoCleanup arguments on the coroutine.

Synopsis

Declared in <folly/coro/AutoCleanup‐fwd.h>

template<
    typename Promise,
    typename... Args>
void
scheduleAutoCleanupIfNeeded(
    coroutine_handle<Promise> coro,
    Args&... args);

Parameters

Name

Description

coro

The coroutine handle to attach cleanup to.

args

The arguments checked for AutoCleanup wrappers to clean up.

Created with MrDocs