You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 17, 2025. It is now read-only.
- Wrap Vision framework OCR operations in Task.detached with userInitiated priority
- Use withCheckedContinuation to bridge between sync and async contexts
- Prevents UI thread blocking during computationally expensive OCR operations
- Maintains thread safety with nonisolated function declarations
This fixes the hang risk warnings by ensuring Vision's synchronous
perform() method runs on a background thread instead of blocking the UI.
0 commit comments