Avatar
@swift-main struct Hoge { @discardableResult static func doSomething(handler block: @isolated(any) @escaping () -> Void) -> Any? { print(block.isolation) return nil } } actor SomeService { func subscribe1() { Hoge.doSomething { [weak self] in guard let self = self else { return } } } } let someService = SomeService() await someService.subscribe1() (edited)
🤔 1