We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba0c761 commit 78e0d91Copy full SHA for 78e0d91
Sources/Atoms/Context/AtomTestContext.swift
@@ -42,10 +42,10 @@ public struct AtomTestContext: AtomWatchableContext {
42
/// ```
43
///
44
/// - Parameter interval: The maximum timeout interval that this function can wait until
45
- /// the next update. The default timeout interval is `60`.
+ /// the next update. The default timeout interval is `10`.
46
/// - Returns: A boolean value indicating whether an update is done.
47
@discardableResult
48
- public func waitForUpdate(timeout interval: TimeInterval = 60) async -> Bool {
+ public func waitForUpdate(timeout interval: TimeInterval = 10) async -> Bool {
49
let updates = AsyncStream<Void> { continuation in
50
let cancellable = state.notifier.sink(
51
receiveCompletion: { completion in
0 commit comments