-
Notifications
You must be signed in to change notification settings - Fork 24
State Flow and Shared Flow
Devrath edited this page Jan 21, 2024
·
5 revisions
- Flows are mostly cold but
state-flowandshared-floware exceptions here - The
St.FlowandSh.Flowexist independently of collectors. This means that these flows remain active even if there are no collectors. -
State Flowis a special case ofshared flow.
- This is a flow that acts independently of collectors - Meaning the
share flowis active regardless of whether there are any collectors or not. - Shared flow emits a
current stateandnew stateto the subscribers. -
Shared-flownever completes and remains active. Even though all the subscribers go away, TheShared Flowremains active.
