Tells the scheduler to start listening to schedule requests for the reactor frame.
Tells the scheduler to start listening to schedule requests for the reactor frame. Clients never call this method directly.
By default, assigns the default scheduler state to the schedulerState
field in
the reactor frame.
the reactor frame to start scheduling
Creates an State
object for the reactor frame.
Called immediately after a reactor frame completes an execution batch.
Called immediately after a reactor frame completes an execution batch.
Optionally unschedules and runs some number of frames previously scheduled.
This method by default does nothing, but may be overridden for performance purposes.
Called immediately before a reactor frame begins an execution batch.
Called immediately before a reactor frame begins an execution batch.
Notifies a reactor frame that it should be executed.
Executes the reactor on the thread that called the reactor system's
spawn
method to create the reactor.While reactors are generally sent off to some other thread or computer for execution after the reactor has been created, this scheduler executes the reactor on the current thread.
The current thread is permanently blocked until the reactor terminates. Using this scheduler from an existing reactor is illegal and throws an exception. This scheduler is meant to be used to turn the application main thread into a reactor, i.e. to step from the normal multithreaded world into the reactor universe.