CurrentValueSubject

E427882

CurrentValueSubject is a Combine publisher that maintains and emits a current value to new and existing subscribers in Apple’s reactive programming framework.

All labels observed (1)

Label Occurrences
CurrentValueSubject canonical 1

How this entity was disambiguated

Statements (43)

Predicate Object
instanceOf Combine publisher
class
reference type
category stateful subject
comparedTo PassthroughSubject
completionBehavior after completion no further values are sent
conformsTo Publisher protocol
Subject protocol
constructor init(_ currentValue: Output)
definedIn Combine framework NERFINISHED
developedBy Apple Inc. NERFINISHED
differenceFrom PassthroughSubject does not retain the latest value
documentationURL https://developer.apple.com/documentation/combine/currentvaluesubject
emits current value to new subscribers
subsequent values to existing subscribers
failureTypeConstraint Error
genericParameter Failure
Output
guarantees new subscribers immediately receive current value
hasMethod send(_ value: Output)
send(completion: Subscribers.Completion<Failure>)
send(subscription: Subscription)
subscribe<S>(_ subscriber: S) where S: Subscriber, Failure == S.Failure, Output == S.Input
hasProperty value
introducedIn iOS 13 NERFINISHED
macOS 10.15 NERFINISHED
tvOS 13 NERFINISHED
watchOS 6 NERFINISHED
lifecycle continues emitting until completion or deallocation
module Combine
ownership value can be read and written via value property
pattern reactive programming
platform Apple platforms NERFINISHED
programmingLanguage Swift NERFINISHED
propertyType value: Output
publishes synchronous values by default
retains most recently published value
stores current value
subscriptionBehavior each subscriber receives values according to its demand
supports backpressure via Subscription
threadSafety not inherently thread-safe
useCase bridging imperative state into Combine pipelines
exposing mutable state as a publisher

How these facts were elicited

Referenced by (1)

Full triples — surface form annotated when it differs from this entity's canonical label.

Combine providesType CurrentValueSubject