Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
I am seeing multiple hardcoded static references to
Dispatchers.Main.immediate
in theLifecycleScope
source.We have the requirement of allowing injection of
Dispatchers.Main.immediate
. For example, maybe we want to control theCoroutineName
for debugging purposes.Access to a
ViewModel
allows for the injection of a customViewModelProvider.Factory
- and this works great for us! Access tolifecycleScope
should be customizable as well.Maybe a
typealias ImmediateMainDispatcherFactory: () -> CoroutineContext
could be made to be injectable?