Generic Instance Method

subscribe(on:options:)

Specifies the scheduler on which to perform subscribe, cancel, and request operations.

Declaration

func subscribe<S>(on scheduler: S, options: S.SchedulerOptions? = nil) -> Publishers.SubscribeOn<Publishers.MapKeyPath2<Upstream, Output0, Output1>, S> where S : Scheduler

Parameters

scheduler

The scheduler on which to receive upstream messages.

options

Options that customize the delivery of elements.

Return Value

A publisher which performs upstream operations on the specified scheduler.