Class: Winloop::Scheduler::Timer

Inherits:
Struct
  • Object
show all
Defined in:
lib/winloop/scheduler.rb

Overview

A timer heap node. ‘value` is what the fiber is resumed with when it fires; `raise_exc` (for Timeout.timeout) makes it raise into the fiber instead.

Instance Attribute Summary collapse

Instance Attribute Details

#deadlineObject

Returns the value of attribute deadline

Returns:

  • (Object)

    the current value of deadline



40
41
42
# File 'lib/winloop/scheduler.rb', line 40

def deadline
  @deadline
end

#raise_excObject

Returns the value of attribute raise_exc

Returns:

  • (Object)

    the current value of raise_exc



40
41
42
# File 'lib/winloop/scheduler.rb', line 40

def raise_exc
  @raise_exc
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



40
41
42
# File 'lib/winloop/scheduler.rb', line 40

def value
  @value
end

#waiterObject

Returns the value of attribute waiter

Returns:

  • (Object)

    the current value of waiter



40
41
42
# File 'lib/winloop/scheduler.rb', line 40

def waiter
  @waiter
end