Avatar
Avatar
shiz
sync contextから Task.init するときにどうなるのかが気になります
ここは現在と変更しないと、書いてますね。
This design decision was made specifically to make the behavior of Task.init consistent across nonisolated synchronous and async functions. We can't change the behavior of unstructured task isolation in nonisolated synchronous functions,
because that would require changing the ABI of every unspecified synchronous function. I do not think that's worth it; that's a much larger ABI transition than the one that's currently proposed.
https://forums.swift.org/t/pitch-inherit-isolation-by-default-for-async-functions/74862/75
(edited)
すみません、わかりづらいですが、この「気になる」はもし暗黙の isolated 引数を Optional でなくすなら、そのときにsync contextをどのように扱えば良いか考慮か必要という意味でした (edited)
t_naruhodo 1