@@ -16,7 +16,7 @@ import Foundation
16
16
17
17
@available ( iOS 13 . 0 . 0 , macOS 10 . 15 . 0 , macCatalyst 13 . 0 . 0 , tvOS 13 . 0 . 0 , watchOS 7 . 0 . 0 , * )
18
18
public extension RemoteConfig {
19
- /// Returns an `AsyncThrowingStream ` that provides real-time updates to the configuration.
19
+ /// Returns an `AsyncSequence ` that provides real-time updates to the configuration.
20
20
///
21
21
/// You can listen for updates by iterating over the stream using a `for try await` loop.
22
22
/// The stream will yield a `RemoteConfigUpdate` whenever a change is pushed from the
@@ -26,7 +26,7 @@ public extension RemoteConfig {
26
26
/// The underlying listener is automatically added when you begin iterating and is removed when
27
27
/// the iteration is cancelled or finishes.
28
28
///
29
- /// - Throws: `RemoteConfigUpdateError ` if the listener encounters a server-side error or another
29
+ /// - Throws: An `Error ` if the listener encounters a server-side error or another
30
30
/// issue, causing the stream to terminate.
31
31
///
32
32
/// ### Example Usage
@@ -47,7 +47,7 @@ public extension RemoteConfig {
47
47
/// }
48
48
/// }
49
49
/// ```
50
- @available ( iOS 18 . 0 , * )
50
+ @available ( macOS 15 . 0 , iOS 18 . 0 , watchOS 11 . 0 , tvOS 18 . 0 , visionOS 2 . 0 , * )
51
51
var configUpdates : some AsyncSequence < RemoteConfigUpdate , Error > {
52
52
AsyncThrowingStream { continuation in
53
53
let listener = addOnConfigUpdateListener { update, error in
0 commit comments