Skip to content

Flows: What is meant by flattening

Devrath edited this page Jan 22, 2024 · 3 revisions

What is meant by flattening

  • See, A flow might call another flow. This might result in a Flow of Flows meaning Flow<Flow>
  • Now say we want to get the underlying data.
  • This is called Flattening

API's for flattening

  • flatMapConcat
  • flatMapMerge
  • flatMapLatest
Clone this wiki locally