associatedtype ActorType
The type of the shared actor instance that will be used to provide mutually-exclusive access to declarations annotated with the given global actor type.
共有アクターインスタンスの型、それは与えられたグローバルアクター型で注釈を付けられた宣言への相互排他アクセスを提供するために使われます。
Availability
Technology
protocol GlobalActor
A type that conforms to the Global
protocol and is marked with the @global
attribute can be used as a custom attribute. Such types are called global actor types, and can be applied to any declaration to specify that such types are isolated to that global actor type.
そのような型はグローバルアクター型と呼ばれます、そしてあらゆる宣言に適用されることでそのような型それらがそのグローバルアクター型と分離されることを指定できます。
When using such a declaration from another actor (or from nonisolated code), synchronization is performed through the shared actor instance to ensure mutually-exclusive access to the declaration.
associatedtype ActorType
static var shared: Self.ActorType
static var sharedUnownedExecutor : UnownedSerialExecutor
protocol Sendable
protocol Actor
class MainActor
typealias ConcurrentValue
Deprecated
非推奨
protocol UnsafeSendable
typealias UnsafeConcurrentValue
Deprecated
非推奨