class

IdleGC::Timer

Inherits Reference < Object

Constants

DEFAULT_FORCE_GC_PERIOD = 2.minutes
DEFAULT_POLL_INTERVAL = 10.seconds

Class methods

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.

Source
poll_interval=(v : ::Time::Span) : Nil

Set the polling interval before starting. Defaults to 10 seconds.

Source
running?
Source
start

Start one periodic polling fiber for the lifetime of the process.

Source