folly::CancellationSource::canBeCancelled

Query if cancellation can be requested through this CancellationSource object. This will only return false if the CancellationSource object has been moved-from.

Synopsis

Declared in <folly/CancellationToken.h>

bool
canBeCancelled() const noexcept;

Return Value

true if cancellation can be requested, false otherwise