nonisolated final var unownedExecutor: UnownedSerialExecutor { get }
Retrieve the executor for this actor as an optimized, unowned
reference.
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.
- SeeAlso: ``SerialExecutor``
- SeeAlso: ``TaskExecutor``
init · iOS 17.0+
init
TypeScript
static init(name: string): Promise<CLMonitor>
Swift declaration
init(_ name: String) async
Skipped declarations
6 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
CLMonitor.identifiers
The iOS SDK compiler rejected this binding: actor-isolated property 'identifiers' can not be referenced from a nonisolated context
CLMonitor.events
The iOS SDK compiler rejected this binding: actor-isolated property 'events' can not be referenced from a nonisolated context
CLMonitor.add(_:identifier:)
The iOS SDK compiler rejected this binding: call to actor-isolated instance method 'add(_:identifier:)' in a synchronous nonisolated context [#ActorIsolatedCall]
CLMonitor.add(_:identifier:assuming:)
The iOS SDK compiler rejected this binding: call to actor-isolated instance method 'add(_:identifier:assuming:)' in a synchronous nonisolated context [#ActorIsolatedCall]
CLMonitor.remove(_:)
The iOS SDK compiler rejected this binding: call to actor-isolated instance method 'remove' in a synchronous nonisolated context [#ActorIsolatedCall]
CLMonitor.record(for:)
The iOS SDK compiler rejected this binding: call to actor-isolated instance method 'record(for:)' in a synchronous nonisolated context [#ActorIsolatedCall]