We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf346f7 commit de1ef4bCopy full SHA for de1ef4b
Sources/ConcurrencyHelpers/Lock.swift
@@ -26,7 +26,7 @@
26
//
27
//===----------------------------------------------------------------------===//
28
29
-#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
+#if canImport(Darwin)
30
import Darwin
31
#elseif os(Windows)
32
import ucrt
Sources/UnixSignals/UnixSignalsSequence.swift
@@ -73,7 +73,7 @@ extension UnixSignalsSequence {
73
74
init(signals: Set<UnixSignal>) async {
75
let sources: [Source] = signals.map { sig in
76
- #if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
+ #if canImport(Darwin)
77
// On Darwin platforms Dispatch's signal source uses kqueue and EVFILT_SIGNAL for
78
// delivering signals. This exists alongside but with lower precedence than signal and
79
// sigaction: ignore signal handling here to kqueue can deliver signals.
0 commit comments