Specifies the scheduler on which to perform subscribe, cancel, and request operations.
- iOS 13.0+Beta
- macOS 10.15+Beta
- Mac Catalyst 13.0+Beta
- tvOS 13.0+Beta
- watchOS 6.0+Beta
- Xcode 11.0+Beta
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