Contents

unownedExecutor

Retrieve the executor for this actor as an optimized, unowned reference.

Declaration

nonisolated final 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.