folly::tryGetShutdownSocketSet

Returns the process-global shutdown socket set, if one has been installed.

Synopsis

Declared in <folly/io/GlobalShutdownSocketSet.h>

std::shared_ptr<ShutdownSocketSet>
tryGetShutdownSocketSet();

Return Value

A shared pointer to the global set, or null if none is set.