class Async::Reactor

A wrapper around the the scheduler which binds it to the current thread automatically.

def self.run(...)

Deprecated:
  • Replaced by {Kernel::Async}.
def self.run(...)
	Async(...)
end

def initialize(...)

Initialize the reactor and assign it to the current Fiber scheduler.
def initialize(...)
	super
	
	Fiber.set_scheduler(self)
end

def scheduler_close

Close the reactor and remove it from the current Fiber scheduler.
def scheduler_close
	self.close
end