Log app scope failures instead of crashing outside debug builds

This commit is contained in:
AntsyLich
2026-10-10 22:51:17 +06:00
parent a82d27c3a6
commit f9c5fa9011
4 changed files with 28 additions and 1 deletions
@@ -9,6 +9,9 @@ import dev.zacsweers.metro.Qualifier
* [kotlinx.coroutines.Dispatchers.IO], so a failure in one child never takes the others down. Use it for work that is
* owned by an application scoped component and must outlive any screen. Work that belongs to a screen, a view model or
* another cancellable lifecycle keeps its own scope.
*
* A child that fails with an uncaught exception is logged and reported instead of crashing the app, except in debug
* builds, since by the time it fails the screen that started it may be long gone.
*/
@Qualifier
@Target(