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///
@@ -42,7 +41,7 @@ public struct AtomTestContext: AtomWatchableContext {
4241 /// - Returns: A boolean value indicating whether an update has happened.
4342 @inlinable
4443 @discardableResult
45- public func waitForUpdate( timeout duration: TimeInterval ? = nil ) async -> Bool {
44+ public func waitForUpdate( timeout duration: Double ? = nil ) async -> Bool {
4645 await withTaskGroup ( of: Bool . self) { group in
4746 let updates = _state. makeUpdateStream ( )
4847
@@ -97,7 +96,7 @@ public struct AtomTestContext: AtomWatchableContext {
9796 @discardableResult
9897 public func wait< Node: Atom > (
9998 for atom: Node ,
100- timeout duration: TimeInterval ? = nil ,
99+ timeout duration: Double ? = nil ,
101100 until predicate: @escaping ( Node . Loader . Value ) -> Bool
102101 ) async -> Bool {
103102 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