Avatar
@swift-6.2-dev -swift-version 6 import Foundation class MyClass { let other: any Other init(other: any Other) { self.other = other DispatchQueue.global().async(execute: other.bar) } } @MainActor protocol Other { func bar() } (edited)