File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 11import Combine
2- import Foundation
32
43/// A context structure to read, watch, and otherwise interact with atoms in testing.
54///
@@ -49,7 +48,7 @@ public struct AtomTestContext: AtomWatchableContext {
4948 /// - Returns: A boolean value indicating whether an update has happened.
5049 @inlinable
5150 @discardableResult
52- public func waitForUpdate( timeout duration: TimeInterval ? = nil ) async -> Bool {
51+ public func waitForUpdate( timeout duration: Double ? = nil ) async -> Bool {
5352 await withTaskGroup ( of: Bool . self) { group in
5453 let updates = _state. makeUpdateStream ( )
5554
@@ -104,7 +103,7 @@ public struct AtomTestContext: AtomWatchableContext {
104103 @discardableResult
105104 public func wait< Node: Atom > (
106105 for atom: Node ,
107- timeout duration: TimeInterval ? = nil ,
106+ timeout duration: Double ? = nil ,
108107 until predicate: @escaping ( Node . Loader . Value ) -> Bool
109108 ) async -> Bool {
110109 await withTaskGroup ( of: Bool . self) { group in
Original file line number Diff line number Diff line change 1- import Combine
21import SwiftUI
32
43/// A property wrapper type that provides a context structure to read, watch, and otherwise
You can’t perform that action at this time.
0 commit comments