Schedulers API

A scheduler controls how and when an observable delivers its actions: the initial subscription and each next, error, and complete event. The default scheduler for almost all observables is the AsapScheduler, which runs every action as soon as possible. The AsyncScheduler delivers messages asynchronously instead. Both are described on the Subjects page.

Interface

Every scheduler is a subtype of AbstractScheduler and implements the following interface.

Rocket.makeinstanceFunction
makeinstance(::Type{L}, scheduler)

Creates a per-subscription scheduler instance for the data type L. Stateless schedulers usually return themselves, while stateful ones return a fresh instance for each subscription.

See also: instancetype, getscheduler

source

Threads scheduler