Avatar
内側の Task が外側の Task のisolation domainを引き継ぐと思ってた。引き継ぐのはactor contextだけなのか
ちょうど昨日Hollyさんがそのようなことを言ってましたね。 It's also not true that Task.init always inherits isolation in an isolated method. Isolation is only inherited if you capture the isolated parameter in the closure body. https://forums.swift.org/t/pitch-inherit-isolation-by-default-for-async-functions/74862/75 あと、元々Task.initのクロージャに付いていた属性が _inheritActorContextなので僕もActorのContextだけという認識でした。
(edited)
👉 1