Variable Reactor.OpenOptions.hoggerWarningThreshold

Hogger detection threshold.

struct Reactor.OpenOptions
{
  // ...
  core.time.Duration hoggerWarningThreshold = Duration(2000000L);
  // ...
}

A hogger is a fiber that does not release the CPU to run other tasks for a long period of time. Often, this is a result of a bug (i.e. - calling the OS's sleep instead of the reactor's).

Hogger detection works by measuring how long each fiber took until it allows switching away. If the fiber took more than hoggerWarningThreshold, a warning is logged.