How AsyncLocationKit architecture works
mainAsyncLocationKit uses a Performer Pattern to wrap Apple's delegate-based CoreLocation API into a modern async/await interface.
- AsyncLocationManager: The public API entry point.
- AsyncDelegateProxy: A thread-safe dispatcher that routes CoreLocation delegate events to the appropriate performers.
- Performers: Specialized handlers (e.g.,
SingleLocationUpdatePerformer,AuthorizationPerformer) that implement specific logic for different CoreLocation tasks. - Events: Strongly-typed enums that represent the actual data or errors received from CoreLocation.