---
title: "Discussion on \"Flows in Kotlin\" | Hashnode"
description: "Discussion on \"Flows in Kotlin\". Flow vs Stateflow vs Sharedflow\nFirst, the Base Type: Flow<T>\n\nA cold asynchronous stream.\n\nStarts emitting only when collected.\n\nUse for standard data streams (e.g., database queries, API paginated responses).\n\n\nfun getNumbers(): Flow<Int> = flow {\n..."
url: "https://hashnode.com/posts/flows-in-kotlin/6809d125e20dfbb6331b451c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Flows in Kotlin](https://bpn.hashnode.dev/flows-in-kotlin?utm_source=hashnode&utm_medium=feed)

Flow vs Stateflow vs Sharedflow First, the Base Type: Flow<T> A cold asynchronous stream. Starts emitting only when collected. Use for standard data streams (e.g., database queries, API paginated responses). fun getNumbers(): Flow<Int> = flow { ...

Apr 24, 2025 · 2 min read · bpn.hashnode.dev  
Read the article

-   [#hotflow](https://hashnode.com/tag/hotflow)
-   [#coldflow](https://hashnode.com/tag/coldflow)
-   [#flows](https://hashnode.com/tag/flows)
-   [#stateflow](https://hashnode.com/tag/stateflow)
-   [#sharedflow](https://hashnode.com/tag/sharedflow)

## Written by

[Bipin](https://hashnode.com/@bpn9adh)

@bpn9adh

  
[View profile](https://hashnode.com/@bpn9adh)

Personal Blog

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
