Matej Drobnič

Results 338 comments of Matej Drobnič

Issue https://github.com/googlesamples/android-architecture-components/issues/148 (which is kind of duplicate of this one) provides pretty good solution to this problem: You can use `AutoViewModelFactory` to automatically generate factory for you with `@Named` parameters....

I found a workaround for this: exclude this plugin from blanked task disabling. I do this by checking `task.javaClass.name.startsWith("com.autonomousapps")`. It's not ideal, but at least it doesn't crash.

It doesn't look like Google will ever get to solving this issue. Do you think there is a workaround that we can take?

I would also vote for raw file sync. Whole point of this app is that everything is stored as raw markdown files, without any proprietary server sitting in between. I'm...

Another use case here is to collect first emitted value between multiple flows. As far as I know, this can only be done using `select`, but to use flows in...

Maybe solution is to provide some way to create a "daemon" coroutines that would not block the scope, but would still get cancelled by it? Something similar to the `backgroundScope`...

I'm just wondering, what would be the main difference between `runCurrent` and `awaitIdle`? Would the difference be just in the naming? I thought runCurrent already "Waits until all the tasks...

Thanks for the explanation. Then yeah, `awaitIdle` would probably be the best solution for us. Problem with other alternatives comes mostly down to time-sensitive code and nested coroutines. Let's say...

Huh, but the test does complete when launching in regular scope instead of `backgroundScope`

My test includes test subject, a pretty complicated stack of corourines (lots of nested coroutine scopes etc.) that is collecting flows in infinite loop, so I have to run it...