Skip to content

Commit c16fe8d

Browse files
authored
Use Double instead of TimeInterval (#120)
1 parent 8cc864d commit c16fe8d

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
///
@@ -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

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)