DEV Community

Cover image for 19 Things to Know About Kotlin Flow — A Quick Note
Raksha for Canopas Software

Posted on

19 Things to Know About Kotlin Flow — A Quick Note

Do you have one minute? great!

It’s enough to have quick look at some useful things you should know about Kotlin Flow.

Here are 19 things you should know about Kotlin Flow.

Flow is an asynchronous data stream that sequentially emits values and completes normally or with an exception.

1) Flows is basically cold stream, but flow can be converted into a hot stream by stateIn or shareIn operators.

2) StateFlow and SharedFlow are the hot stream variants.

3) Under the hood StateFlow is a shared flow. State flow never completes. State flow requires an initial value.

To read all the useful information about flow, visit our blog on blog.canopas.com.

Top comments (0)