Skip to content

Commit da7999b

Browse files
committed
imports
1 parent 185ca03 commit da7999b

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

Sources/AsyncTimeoutSequence.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
// SOFTWARE.
3030
//
3131

32-
import Foundation
32+
import struct Foundation.TimeInterval
3333

3434
public extension AsyncSequence where Element: Sendable {
3535

Sources/TimeoutController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
//
3131

3232
#if compiler(>=6.0)
33-
import Foundation
33+
import struct Foundation.TimeInterval
3434

3535
public struct TimeoutController: Sendable {
3636
fileprivate var canary: @Sendable () -> Void

Sources/withThrowingTimeout.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
// SOFTWARE.
3030
//
3131

32-
import Foundation
32+
import protocol Foundation.LocalizedError
33+
import struct Foundation.TimeInterval
3334

3435
public struct TimeoutError: LocalizedError {
3536
public var errorDescription: String?

Tests/Task+SleepIndefinitelyTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
#if canImport(Testing)
3333
@testable import Timeout
34-
import Foundation
34+
import struct Foundation.TimeInterval
3535
import Testing
3636

3737
struct TaskSleepIndefinitelyTests {

Tests/withThrowingTimeoutTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
#if canImport(Testing)
3333
@testable import Timeout
34-
import Foundation
34+
import struct Foundation.TimeInterval
3535
import Testing
3636

3737
struct WithThrowingTimeoutTests {

0 commit comments

Comments
 (0)