From 21b72c579a0d04a530e2b2f456c551c5b8940cf8 Mon Sep 17 00:00:00 2001 From: Tim Condon <0xTim@users.noreply.github.com> Date: Thu, 2 Nov 2023 02:40:01 +0000 Subject: [PATCH] Fix a Sendable warning on Linux (#190) --- Sources/ConsoleKit/Activity/ActivityIndicator.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Sources/ConsoleKit/Activity/ActivityIndicator.swift b/Sources/ConsoleKit/Activity/ActivityIndicator.swift index a674ba7..66b33c5 100644 --- a/Sources/ConsoleKit/Activity/ActivityIndicator.swift +++ b/Sources/ConsoleKit/Activity/ActivityIndicator.swift @@ -1,4 +1,9 @@ -import Dispatch +#if os(Linux) +// Needed because DispatchQueue isn't Sendable on Linux +@preconcurrency import Foundation +#else +import Foundation +#endif #if canImport(Darwin) import Darwin #else