Class: Emit::MainProcess

Inherits:
Process show all
Includes:
Singleton
Defined in:
lib/emit/scheduler.rb

Instance Attribute Summary

Attributes inherited from Process

#fiber, #return_value, #state

Instance Method Summary collapse

Methods inherited from Process

#*, #active?, #executed?, #notify, #run, #start, #transfer, #wait

Constructor Details

#initializeMainProcess

Returns a new instance of MainProcess.



8
9
10
# File 'lib/emit/scheduler.rb', line 8

def initialize
  @fiber = Fiber.current
end