ValueObservationScheduler
A type that determines when ValueObservation
notifies its fresh values.
protocol ValueObservationScheduler : Sendable
Browse conforming typesBuilt-In Schedulers
static func async(onQueue: DispatchQueue
) -> AsyncValueObservationScheduler A scheduler that asynchronously notifies fresh value of the given
DispatchQueue
.static var immediate: ImmediateValueObservationScheduler
A scheduler that notifies all values on the main actor. The first value is immediately notified when the
ValueObservation
is started.static var mainActor: DelayedMainActorValueObservationScheduler
A scheduler that notifies all values on the main actor.
static var task: TaskValueObservationScheduler
A scheduler that notifies all values from a new
Task
.static func task(priority: TaskPriority
) -> TaskValueObservationScheduler A scheduler that notifies all values from a new
Task
with the given priority.struct AsyncValueObservationScheduler
A scheduler that asynchronously notifies fresh value of a
DispatchQueue
.class TaskValueObservationScheduler
A scheduler that notifies all values on the cooperative thread pool.