Skip to content

Commit 1c5b0b6

Browse files
committed
Use Double instead of TimeInterval
1 parent ed14579 commit 1c5b0b6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Sources/Atoms/Context/AtomTestContext.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import 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

Sources/Atoms/PropertyWrapper/ViewContext.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import Combine
21
import SwiftUI
32

43
/// A property wrapper type that provides a context structure to read, watch, and otherwise

0 commit comments

Comments
 (0)