---
title: "Discussion on \"Chapter 18 : UseCase15 - flatMapLatest\" | Hashnode"
description: "Discussion on \"Chapter 18 : UseCase15 - flatMapLatest\". In this chapter we will focus on automatic cancellation of previous work when new data arrives.\nConcept\nflatMapLatest works like this:\n\nUpstream emits a value.\n\nA new inner flow starts.\n\nIf upstream e"
url: "https://hashnode.com/posts/chapter-18-usecase15-flatmaplatest/6992110959d0758c8426aba7"
---

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

Discussion

# [Chapter 18 : UseCase15 - flatMapLatest](https://kotlinflow.hashnode.dev/chapter-18-usecase15-flatmaplatest?utm_source=hashnode&utm_medium=feed)

In this chapter we will focus on automatic cancellation of previous work when new data arrives. Concept flatMapLatest works like this: Upstream emits a value. A new inner flow starts. If upstream e

Feb 1 · 4 min read · kotlinflow.hashnode.dev  
Updated Feb 20  
Read the article

-   [#kotlin](https://hashnode.com/tag/kotlin)
-   [#kotlin-multiplatform](https://hashnode.com/tag/kotlin-multiplatform)
-   [#kotlin-flow](https://hashnode.com/tag/kotlin-flow)
-   [#cancel](https://hashnode.com/tag/cancel)
-   [#workflow](https://hashnode.com/tag/workflow)
-   [#flow](https://hashnode.com/tag/flow)
-   [#usecase](https://hashnode.com/tag/usecase)
-   [#flatmap](https://hashnode.com/tag/flatmap)
-   [#reactive-programming](https://hashnode.com/tag/reactive-programming)

## 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.
