folly::Executor::isKeepAliveDummy

Returns true if the KeepAlive is constructed from an executor that does not support the keep alive ref-counting functionality

Synopsis

Declared in <folly/Executor.h>

template<typename ExecutorT>
static
bool
isKeepAliveDummy(KeepAlive<ExecutorT> const& keepAlive);

Return Value

true if keepAlive is a dummy token.

Parameters

NameDescription
keepAliveThe keep-alive token to test.