Class EventLoopScheduler
Represents an operator that creates an object that schedules units of work on a single dedicated thread.
Warning
Scheduler operators are used only to return an instance of the corresponding scheduler object. They need to be combined with the ObserveOn or SubscribeOn operators to actually schedule actions.
Important
The scheduler object returned by EventLoopScheduler
needs to be explicitly disposed. Assign the result of this operator to a ResourceSubject to ensure the dedicated scheduler thread is terminated at the end of the workflow.
public sealed class EventLoopScheduler : Source<EventLoopScheduler>
- Inheritance
-
EventLoopScheduler
- Inherited Members
Methods
Generate()
Generates an observable sequence that returns a new EventLoopScheduler object.
public override IObservable<EventLoopScheduler> Generate()
Returns
- IObservable<EventLoopScheduler>
A sequence containing the created EventLoopScheduler object.