Class: Green::Event
- Inherits:
-
Object
- Object
- Green::Event
- Defined in:
- lib/green/event.rb
Instance Attribute Summary collapse
-
#waiters ⇒ Object
readonly
Returns the value of attribute waiters.
Instance Method Summary collapse
-
#initialize ⇒ Event
constructor
A new instance of Event.
- #set(result = nil) ⇒ Object
- #wait ⇒ Object
Constructor Details
#initialize ⇒ Event
Returns a new instance of Event.
4 5 6 7 |
# File 'lib/green/event.rb', line 4 def initialize @waiters = [] @setted = false end |
Instance Attribute Details
#waiters ⇒ Object (readonly)
Returns the value of attribute waiters.
3 4 5 |
# File 'lib/green/event.rb', line 3 def waiters @waiters end |