Skip to content

Mark global var as constant in ConcurrencyHelpers.swift #7191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

MaxDesiatov
Copy link
Contributor

For some reason this global DispatchQueue.sharedConcurrent binding was marked as mutable. It should be a constant.

For some reason this global binding was marked as mutable. It should be a constant.
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov MaxDesiatov enabled auto-merge (squash) December 12, 2023 16:35
@MaxDesiatov MaxDesiatov self-assigned this Dec 12, 2023
@MaxDesiatov MaxDesiatov merged commit 7a576ed into main Dec 12, 2023
@MaxDesiatov MaxDesiatov deleted the maxd/shared-concurrent branch December 12, 2023 18:52
@@ -41,7 +41,7 @@ public func temp_await<T>(_ body: (@escaping (T) -> Void) -> Void) -> T {

extension DispatchQueue {
// a shared concurrent queue for running concurrent asynchronous operations
public static var sharedConcurrent = DispatchQueue(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants