folly::DefaultKeepAliveExecutor::getWeakRef

Returns a weak keep-alive to executor that does not extend its lifetime.

Synopsis

Declared in <folly/DefaultKeepAliveExecutor.h>

template<typename ExecutorT>
static
auto
getWeakRef(ExecutorT& executor);

Return Value

A weak keep-alive that does not extend the executor's lifetime.

Parameters

NameDescription
executorThe executor to obtain a weak keep-alive to.