【Swift】Actor は 元から Sendable に conform している件

Actor の祖母は Sendable です。

なので、Sendable 扱いできるのです。

母は AnyActor です。


protocol Actor : AnyActor

👉 Actor | Apple Developer Documentation hatena-bookmark


protocol AnyActor : AnyObject, Sendable

👉 AnyActor | Apple Developer Documentation hatena-bookmark

スレッドセーフで SendableActor

使い道が見えてきますよね。