Avatar
そうですね。↓のNonSendableクラスのperformAsyncをactor内部で呼び出してもOKになります。 class NotSendable { func performSync() { ... } func performAsync() async { ... } } actor MyActor { let x: NotSendable func call() async { x.performSync() // okay await x.performAsync() // okay } } プロポーザルによるとnonisolated async funcに、暗黙のisolatedパラメータ(デフォルト値#isolation)を生やすようにするらしいです。 (edited)