Skip to content

About Flow

Devrath edited this page Jan 18, 2024 · 7 revisions

png

Basic Nature

  • Flows are mostly cold🧊 in nature.
  • Here, The flows won't start until there is a subscriber.
  • Whenever a new subscriber is added to the flow, It will get all the data. The flow will start from the beginning and send all the data to the subscriber.
  • If there are multiple subscribers, All see all the data from the flow.
  • The subscribers are responsible for closing the flow for which it is subscribed. So there is no external control here like the way with channels.
  • In channels even if there are known consumers the producers continue sending the data. But if there are no consumers, there won't be emissions.
  • Each subscriber has its own flow but in channels all the subscribers share the emissions.

Clone this wiki locally