Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/Atoms/Context/AtomTestContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ public struct AtomTestContext: AtomWatchableContext {
/// ```
///
/// - Parameter interval: The maximum timeout interval that this function can wait until
/// the next update. The default timeout interval is `60`.
/// the next update. The default timeout interval is `10`.
/// - Returns: A boolean value indicating whether an update is done.
@discardableResult
public func waitForUpdate(timeout interval: TimeInterval = 60) async -> Bool {
public func waitForUpdate(timeout interval: TimeInterval = 10) async -> Bool {
let updates = AsyncStream<Void> { continuation in
let cancellable = state.notifier.sink(
receiveCompletion: { completion in
Expand Down