Class: Ferrum::Utils::Event
- Inherits:
-
Concurrent::Event
- Object
- Concurrent::Event
- Ferrum::Utils::Event
- Defined in:
- lib/ferrum/utils/event.rb
Instance Method Summary collapse
Instance Method Details
#iteration ⇒ Object
6 7 8 |
# File 'lib/ferrum/utils/event.rb', line 6 def iteration synchronize { @iteration } end |
#reset ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/ferrum/utils/event.rb', line 10 def reset synchronize do @iteration += 1 @set = false if @set @iteration end end |