---
title: "Discussion on \"Chapter 30 : UseCase27 - Flow Cancellation &  Cooperative Cancellation \" | Hashnode"
description: "Discussion on \"Chapter 30 : UseCase27 - Flow Cancellation &  Cooperative Cancellation \". Flow cancellation is not an optional feature. It is a core part of how coroutines are designed to behave. When a collector stops collecting, the entire upstream flow is cancelled automatically. This i"
url: "https://hashnode.com/posts/chapter-30-usecase27-flow-cancellation-cooperative-cancellation/6999ddbd1ea55229dbb50438"
---

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

Discussion

# [Chapter 30 : UseCase27 - Flow Cancellation & Cooperative Cancellation](https://kotlinflow.hashnode.dev/chapter-30-usecase27-flow-cancellation-cooperative-cancellation?utm_source=hashnode&utm_medium=feed)

Flow cancellation is not an optional feature. It is a core part of how coroutines are designed to behave. When a collector stops collecting, the entire upstream flow is cancelled automatically. This i

Feb 21 · 6 min read · kotlinflow.hashnode.dev  
Updated Feb 25  
Read the article

-   [#kotlin](https://hashnode.com/tag/kotlin)
-   [#kotlin-beginner](https://hashnode.com/tag/kotlin-beginner)
-   [#flow](https://hashnode.com/tag/flow)
-   [#kotlin-flow](https://hashnode.com/tag/kotlin-flow)
-   [#cancel](https://hashnode.com/tag/cancel)
-   [#cancellation](https://hashnode.com/tag/cancellation)
-   [#upstream](https://hashnode.com/tag/upstream)
-   [#coroutines](https://hashnode.com/tag/coroutines)
-   [#kotlin-coroutines](https://hashnode.com/tag/kotlin-coroutines)
-   [#threads](https://hashnode.com/tag/threads)
-   [#cooperative-cancellation](https://hashnode.com/tag/cooperative-cancellation)
-   [#flow-cancellation](https://hashnode.com/tag/flow-cancellation)
-   [#kill-threads](https://hashnode.com/tag/kill-threads)

## Written by

[Ganesh Rama Hegde](https://hashnode.com/@hegde10122)

@hegde10122 · Mumbai,India

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
