folly::setIOExecutor

methodset Deprecated

Synopsis

Declared in <folly/executors/GlobalExecutor.h>

[[deprecated("setIOExecutor is deprecated. To use the global mutable executor use setUnsafeMutableGlobalIOExecutor. For a better solution use getGlobalIOExecutor and avoid calling set.")]]
void
setIOExecutor(std::weak_ptr<IOExecutor> executor);

WARNING

Deprecated: setIOExecutor is deprecated. To use the global mutable executor use setUnsafeMutableGlobalIOExecutor. For a better solution use getGlobalIOExecutor and avoid calling set.. Use of this entity is allowed but discouraged.

Description

To use the global mutable executor use setUnsafeMutableGlobalIOExecutor. For a better solution use getGlobalIOExecutor and avoid calling set.

Parameters

NameDescription
executorIO Executor to set as the global mutable IO executor.