class
IdleGC::Timer
- IdleGC::Timer
- Reference
- Object
Defined in:
idle-gc/timer.crConstant Summary
-
DEFAULT_FORCE_GC_PERIOD =
2.minutes -
DEFAULT_POLL_INTERVAL =
10.seconds
Class Method Summary
-
.force_gc_period=(v : ::Time::Span | Nil) : Nil
Force an allocation-gated collection even when busy.
-
.poll_interval=(v : ::Time::Span) : Nil
Set the polling interval before starting.
- .running? : Bool
-
.start : Nil
Start one periodic polling fiber for the lifetime of the process.
Class Method Detail
def self.force_gc_period=(v : ::Time::Span | Nil) : Nil
#
Force an allocation-gated collection even when busy. Defaults to 2 minutes. Set to nil before starting to disable forced collections.
def self.poll_interval=(v : ::Time::Span) : Nil
#
Set the polling interval before starting. Defaults to 10 seconds.