Class: Winloop::Scheduler::Waiter

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

Overview

One blocking wait. ‘settled` is the one-shot guard: whoever wakes the fiber first (I/O completion, timeout, or unblock) sets it; everyone else skips.

Instance Attribute Summary collapse

Instance Attribute Details

#fiberObject

Returns the value of attribute fiber

Returns:

  • (Object)

    the current value of fiber



30
31
32
# File 'lib/winloop/scheduler.rb', line 30

def fiber
  @fiber
end

#settledObject

Returns the value of attribute settled

Returns:

  • (Object)

    the current value of settled



30
31
32
# File 'lib/winloop/scheduler.rb', line 30

def settled
  @settled
end