Table of Contents

Class CurrentThreadScheduler

Namespace
Bonsai.Reactive
Assembly
Bonsai.Core.dll

Represents an operator that returns an object that schedules units of work on the current thread.

The CurrentThreadScheduler operator returns a singleton object that can be used to schedule units of work in the current thread. The action is placed in a queue rather than executing immediately, and will only be called after the current action is complete.

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.

public sealed class CurrentThreadScheduler : Source<CurrentThreadScheduler>
Inheritance
CurrentThreadScheduler
Inherited Members

Methods

Generate()

Generates an observable sequence that returns the singleton CurrentThreadScheduler object.

public override IObservable<CurrentThreadScheduler> Generate()

Returns

IObservable<CurrentThreadScheduler>

A sequence containing the singleton CurrentThreadScheduler object.