python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
My MutableStateFlow doesnt emit when called from suspend function in test
I am trying to write tests for my Repository which provides access to my Room database.
For this, I wrote a Mock Database and a mock DAO:
My Database:
abstract class JoozdlogDatabase protected constru...
Joozd
Votes: 0
Answers: 1
why flow collect call more than twice in kotlin?
Hey I am working in kotlin flow in android. I noticed that my kotlin flow collectLatest is calling twice and sometimes even more. I tried this answer but it didn't work for me. I printed the log insid...

Vivek Modi
Votes: 0
Answers: 3
How to print size of flow in kotlin
Hey I am new in kotlin flow. I am trying to print flow size. As we know that list has size() function. Do we have something similar function for flow.
val list = mutableListof(1,2,3)
println(list.size...

Vivek Modi
Votes: 0
Answers: 1
Does a large amount of extraBufferCapacity in the SharedFlow cause memory leak?
I am working on a chat application with MVVM architecture and I use SharedFlow to transfer incoming messages from Repository to ViewModel. When the user is offline and another user sends a large numbe...
Hussein Yaqoobi
Votes: 0
Answers: 1