Skip to content

Commit d51c4aa

Browse files
committed
don't import Foundation if FoundationEssentials/Dispatch available
1 parent 206d7b6 commit d51c4aa

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Sources/Creators/AsyncTimerSequence.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
// Created by Thibault Wittemberg on 04/03/2022.
66
//
77

8+
#if canImport(FoundationEssentials)
9+
import FoundationEssentials
10+
import Dispatch
11+
#else
812
@preconcurrency import Foundation
13+
#endif
914

1015
private extension DispatchTimeInterval {
1116
var nanoseconds: UInt64 {

0 commit comments

Comments
 (0)