Specifies the scheduler on which to perform subscribe, cancel, and request operations.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
The scheduler on which to receive upstream messages.
Options that customize the delivery of elements.
A publisher which performs upstream operations on the specified scheduler.
In contrast with
receive(on:, which affects downstream messages,
subscribe(on:) changes the execution context of upstream messages. In the following example,
background to process requests. However, it uses
Run to send elements to the subscriber.