Produces a semi‐awaitable that runs the generator's cleanup logic.

Synopsis

Declared in <folly/coro/AsyncGenerator.h>

CleanupSemiAwaitable
cleanup() &&;

Return Value

A semi‐awaitable that performs cleanup when awaited.

Created with MrDocs