Instance Property インスタンスプロパティ

unownedExecutor

Retrieve the executor for this actor as an optimized, unowned reference. エグゼキュータ(遂行者)をこのアクターのためにある最適化された、非所有参照として取って来ます。

Declaration 宣言

nonisolated var unownedExecutor: UnownedSerialExecutor { get }

Discussion 解説

This property must always evaluate to the same executor for a given actor instance, and holding on to the actor must keep the executor alive. このプロパティは、与えられたアクターインスタンスに対して常に同じエグゼキュータに評価されなければなりません、そしてアクターを手放さないことはエグゼキュータを存続させる必要があります。

This property will be implicitly accessed when work needs to be scheduled onto this actor. These accesses may be merged, eliminated, and rearranged with other work, and they may even be introduced when not strictly required. Visible side effects are therefore strongly discouraged within this property. このプロパティは、仕事がこのアクター上に予定を組まれる必要がある時に、暗黙的にアクセスされます。これらのアクセスは、他の仕事によって合併、排除、そして再配列されるかもしれません、そしてそれらは厳密には必要とされない時に始められさえするかもしれません。目に見える副作用は、それゆえにこのプロパティ内では強く反対されます。