Open hassila opened 5 months ago
let 'benchmarks' is not concurrency-safe because non-'Sendable' type '() -> ()' may have shared mutable state
~What is the workaround here?~
Use explicit type:
let benchmarks : @Sendable () -> Benchmark? = {
If you have many Benchmark:
let benchmarks : @Sendable () -> Void = {
let 'benchmarks' is not concurrency-safe because non-'Sendable' type '() -> ()' may have shared mutable state