method

on_gc

Importance_0
v2_5_5 - Show latest stable - 0 notes - Class: DRb::TimerIdConv::TimerHolder2
on_gc() private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/drb/timeridconv.rb, line 61
      def on_gc
        return unless Thread.main.alive?
        return if @expires.nil?
        Thread.new { rotate } if @expires < Time.now
        ObjectSpace.define_finalizer(Object.new) {on_gc}
      end
Register or log in to add new notes.