Structureswift 6.0.1_Concurrency
UnownedSerialExecutor
An unowned reference to a serial executor (a SerialExecutor
value).
- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
@frozen struct UnownedSerialExecutor
This is an optimized type used internally by the core scheduling operations. It is an unowned reference to avoid unnecessary reference-counting work even when working with actors abstractly. Generally there are extra constraints imposed on core operations in order to allow this. For example, keeping an actor alive must also keep the actor’s associated executor alive; if they are different objects, the executor must be referenced strongly by the actor.
Citizens in _Concurrency
Conformances
Type members
init(Builtin.Executor
) init<E>(complexEquality: E
) Opts the executor into complex “same exclusive execution context” equality checks.
init<E>(ordinary: E
)