module EF::Loop

provides blocking event loop

Public Class Methods

loop() click to toggle source

starts the loop

# File lib/event-framework.rb, line 88
def self.loop
  @@thread = Thread.new
  @@thread.value
end
thread() click to toggle source

returns corresponding EF::Thread object
which you can use to add new tasks

# File lib/event-framework.rb, line 96
def self.thread
  @@thread
end