@escaping
クロージャの actor context 引き継ぎとは、何(誰)の context を引き継ぐのでしょうか?
@Sendable
cannot escape the concurrency domain in which it was formed. @MainActor
で escape できるのがおかしい? @swift-5.6.3
func run(_ operation: () -> Void) { operation() } func runEscaping(_ operation: @escaping () -> Void) { operation() } actor Foo { var count: Int = 0 func countUp() { run { count += 1 } runEscaping { [weak self] in guard let self = self else { return } print(self.count) } } }