Reactor.OpenOptions

The options control aspects of the reactor's operation

Members

Variables

faultHandlersEnabled
bool faultHandlersEnabled;

Whether to enable fault handlers

fiberStackSize
size_t fiberStackSize;

Stack size of each fiber (except the main fiber). The reactor will allocate numFiber*fiberStackSize during startup

gcInterval
Duration gcInterval;

How often does the GC's collection run.

gcRunThreshold
size_t gcRunThreshold;

Allocation threshold to trigger a GC run

hangDetectorTimeout
Duration hangDetectorTimeout;

Hard hang detection.

hoggerWarningThreshold
Duration hoggerWarningThreshold;

Hogger detection threshold.

maxDesiredRunTime
Duration maxDesiredRunTime;

Maximum desired fiber run time

numFibers
ushort numFibers;

Maximum number of fibers.

numThreadsInPool
uint numThreadsInPool;

Number of threads servicing deferred tasks

numTimers
size_t numTimers;

Maximal number of timers that can be simultaneously registered.

registerDefaultIdler
bool registerDefaultIdler;

Whether the reactor should register the default (fd processing) idle handler

threadDeferralEnabled
bool threadDeferralEnabled;

Whether we have enabled deferToThread

threadStackSize
size_t threadStackSize;

Worker thread stack size

timerGranularity
Duration timerGranularity;

Base granularity of the reactor's timer.

utGcDisabled
bool utGcDisabled;

Disable all GC collection during the reactor run time. Only available for UTs.

Meta