February 2017
Intermediate to advanced
434 pages
10h 27m
English
Every reactor goes through a certain set of stages during its lifetime, which are jointly called a reactor lifecycle. When the reactor enters a specific stage, it emits a lifecycle event. These lifecycle events are dispatched on a special daemon event stream called sysEvents. Every reactor is created with this special event stream.
The reactor lifecycle can be summarized as follows:
spawn method, the reactor is scheduled for execution. Its constructor is started asynchronously, and immediately after that, a ReactorStarted event is dispatched.ReactorScheduled event gets dispatched. After that, events get dispatched on normal event streams.Read now
Unlock full access