The error handler for the fatal errors not passed to reactors.
The error handler for the fatal errors not passed to reactors.
Creates an State
object for the reactor frame.
Notifies a reactor frame that it should be executed.
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
(piggyback: StringAdd).self
(piggyback: StringFormat).self
(piggyback: ArrowAssoc[Piggyback]).x
(Since version 2.10.0) Use leftOfArrow
instead
(piggyback: Ensuring[Piggyback]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
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.