Skip to content

Commit 7a576ed

Browse files
authored
Mark global var as constant in ConcurrencyHelpers.swift (#7191)
For some reason this global `DispatchQueue.sharedConcurrent` binding was marked as mutable. It should be a constant.
1 parent 759174d commit 7a576ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Basics/Concurrency/ConcurrencyHelpers.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public func temp_await<T>(_ body: (@escaping (T) -> Void) -> Void) -> T {
4141

4242
extension DispatchQueue {
4343
// a shared concurrent queue for running concurrent asynchronous operations
44-
public static var sharedConcurrent = DispatchQueue(
44+
public static let sharedConcurrent = DispatchQueue(
4545
label: "swift.org.swiftpm.shared.concurrent",
4646
attributes: .concurrent
4747
)

0 commit comments

Comments
 (0)