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, requests to
json are performed on
background, but elements received from it are performed on