Apologies if this has been asked before, but I'm n...
# coroutines
i
Apologies if this has been asked before, but I'm not finding anything via search. Are there plans to cover
SharedFlow
and
StateFlow
under https://kotlinlang.org/docs/? If so, is there a related YouTrack/GitHub issue that could be followed and contributed to? Not that the KDocs aren't good, but it seems like a rather important component of the API, and I'm not seeing any mention of it on the #kotlin-website at all.
1
i
Right, as mentioned, I'm aware of the KDocs.
Flow
is documented in the KDocs and at https://kotlinlang.org/docs/flow.html.
SharedFlow
and
StateFlow
aren't covered by the main Docs site at all. I think that limits their discoverability, and might make people think they're not a major first-class component of the API along with
Flow
. Given the significant hot/cold difference, they seem worthy of dedicated guide-like coverage on the Docs site.
4
u
Shouldn’t you be waiting for 200ms silence and then pick the latest emission? I don’t see the point in delaying emissionOf den item after it is already determined to be emitted.
e
@uli wrong thread?
🤣 1
i
I guess GitHub would be the place to file the request (as opposed to YouTrack), since the Coroutines Guide pages under kotlinlang.org/docs/ appear to be pulled from there: https://github.com/Kotlin/kotlinx.coroutines/blob/master/docs/topics/coroutines-guide.md.