kotlin-tutorials icon indicating copy to clipboard operation
kotlin-tutorials copied to clipboard

Flow is intended to return a single value that changes over time, not as a replacement of list.

Open andre-artus opened this issue 2 years ago • 1 comments

The Kotlin Flow concept is intended to return a reference that notifies observers of changes to its value (which may be a list/collection) but here it is used as a replacement for list. It will kind of work but the way to return a list as flow is Flow<List<T>>.

andre-artus avatar Jul 08 '22 17:07 andre-artus

I assume this is the article - https://www.baeldung.com/kotlin/flow-intro - you're referring to? Any particular code example/section that is misleading in your opinion? We'll be happy to take a look into this.

kwoyke avatar Jul 15 '22 07:07 kwoyke