Method: Emit::Process#notify
- Defined in:
- lib/emit/process.rb
#notify(new_state) ⇒ Object
25 26 27 28 |
# File 'lib/emit/process.rb', line 25 def notify(new_state) @state = new_state Scheduler.activate(self) unless Scheduler.current == self end |