How to use flow in Kotlin
Issue #388
Asynchronous Flow
https://kotlinlang.org/docs/reference/coroutines/flow.html
Using List
result type we can only return all the values at once. To represent the stream of values that are being asynchronously computed we can use Flow type similarly to the Sequence type for synchronously computed values: