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
refactor(maps-compose): Make GoogleMapsInitializer fully suspending
The `initialize` function has been refactored to be a fully suspending operation.
Key changes:
- Replaced `launch(Dispatchers.IO)` with `withContext(Dispatchers.IO)`. This ensures the `initialize` function suspends until the blocking initialization call is complete, rather than returning immediately.
- Added explicit handling for non-SUCCESS results from `MapsInitializer.initialize()` to set the state to `FAILURE`.
- Restructured the `try-catch` block to correctly handle exceptions from the `withContext` block.
0 commit comments