Skip to content
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

Swift 6 language mode support needed #258

Open
hassila opened this issue Jun 14, 2024 · 2 comments
Open

Swift 6 language mode support needed #258

hassila opened this issue Jun 14, 2024 · 2 comments

Comments

@hassila
Copy link
Contributor

hassila commented Jun 14, 2024

let 'benchmarks' is not concurrency-safe because non-'Sendable' type '() -> ()' may have shared mutable state

@t089
Copy link

t089 commented Sep 28, 2024

What is the workaround here?

Use explicit type:

let benchmarks : @Sendable () -> Benchmark? = {

@toffaletti
Copy link

If you have many Benchmark:

let benchmarks : @Sendable () -> Void = {

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

No branches or pull requests

3 participants