Contents

Observations

An asynchronous sequence generated from a closure that tracks the transactional changes of @Observable types.

Declaration

struct Observations<Element, Failure> where Element : Sendable, Failure : Error

Overview

Observations conforms to AsyncSequence, providing an intuitive and safe mechanism to track changes to types that are marked as @Observable by using Swift Concurrency to indicate transactional boundaries starting from the willSet of the first mutation to the next suspension point of the safe access.

Topics

Structures

Initializers

Type Methods

Enumerations