Skip to content

Commit

Permalink
Fix a Sendable warning on Linux (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTim authored Nov 2, 2023
1 parent ccd0773 commit 21b72c5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Sources/ConsoleKit/Activity/ActivityIndicator.swift
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 21b72c5

Please sign in to comment.