A publisher that exposes a method for outside callers to publish elements.
SDKs
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
Framework
- Combine
A publisher that exposes a method for outside callers to publish elements.
SDKs
Framework
func send(Self .Output)
Sends a value to the subscriber.
Required.
func send()
Sends a void value to the subscriber.
func send(subscription: Subscription)
Sends a subscription to the subscriber.
Required.
func send(completion: Subscribers .Completion<Self .Failure>)
Sends a completion signal to the subscriber.
Required.
class Current Value Subject
A subject that wraps a single value and publishes a new element whenever the value changes.
class Passthrough Subject
A subject that broadcasts elements to downstream subscribers.