Struct Reactor.OpenOptions

The options control aspects of the reactor's operation

struct OpenOptions ;

Fields

NameTypeDescription
faultHandlersEnabled boolWhether to enable fault handlers
fiberStackSize ulongStack size of each fiber (except the main fiber). The reactor will allocate numFiber*fiberStackSize during startup
gcInterval core.time.DurationHow often does the GC's collection run.
gcRunThreshold ulongAllocation threshold to trigger a GC run
hangDetectorTimeout core.time.DurationHard hang detection.
hoggerWarningThreshold core.time.DurationHogger detection threshold.
maxDesiredRunTime core.time.DurationMaximum desired fiber run time
numFibers ushortMaximum number of fibers.
numThreadsInPool uintNumber of threads servicing deferred tasks
numTimers ulongMaximal number of timers that can be simultaneously registered.
registerDefaultIdler boolWhether the reactor should register the default (fd processing) idle handler
threadDeferralEnabled boolWhether we have enabled deferToThread
threadStackSize ulongWorker thread stack size
timerGranularity core.time.DurationBase granularity of the reactor's timer.
utGcDisabled boolDisable all GC collection during the reactor run time. Only available for UTs.