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
feat: Use lifecycle-aware CoroutineScope in MyDownloadService
Refactored `MyDownloadService` to use a single, lifecycle-aware `CoroutineScope` backed by a `SupervisorJob`.
This change prevents orphaned downloads and potential memory leaks by ensuring that all download coroutines are cancelled when the service is destroyed. The `downloadJob` is now cancelled in `onDestroy()`.
0 commit comments