Returns the cancellation token associated with this promise.

Synopsis

Declared in <folly/coro/Promise.h>

CancellationToken const&
getCancellationToken() const;

Return Value

The cancellation token observed by the promise.

Created with MrDocs