Generic Instance Method
Provides a subject to deliver elements to multiple subscribers.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
A subject to deliver elements to downstream subscribers.
Use a multicast publisher when you have multiple downstream subscribers, but you want upstream publishers to only process one
receive(_:) call per event.
In contrast with
multicast(_:), this method produces a publisher that shares the provided
Subject among all the downstream subscribers.
Working with Multiple Subscribers