question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing Flow operators

See original GitHub issue

ReceiveChannel is missing some very useful extension functions

.combineLatest() .distinctUntilChanged() .switchMap() .merge() .scan() .filterIsInstance()

Would it be possible to add these?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:10
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
qwwdfsadcommented, Aug 14, 2018

Hopefully, channel will implement the same interface as cold stream and we will implement operators once and for all

2reactions
PaulWoitaschekcommented, May 10, 2019

I’d love to see more overloads for the combineLatest operator, or at least one combineLatest operator that takes a List<Flow<*>> so I can create my T1…Tx combineLatest functions myself.

In RxJava I really often use the pattern of combining the latest emissions of an observable into a view state:

Observable.combineLatest(userStream, recipeForId(id), foodFavoritesStream, userSettingsStream, ::buildViewState)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Why 'Add' operator is not available in flow assignment
I'm creating a new flow but referencing an older flow. The older flow shows this variable adds this value while the new flow...
Read more >
Solved: Data operations actions are missing in Flow
Solved: Hello, PA community, i have couple of licences and for one of them Data operations actions are missing. these: it is not...
Read more >
Explore missing flow dynamics by physics-informed deep ...
Gaining and understanding flow dynamics have much importance in a wide range of disciplines, e.g., astrophysics, geophysics, biology, mechanical engineering ...
Read more >
Salesforce Flows - Use Not Contains, Not Starts With and Not ...
In this post we will see how to use Not Contains (Does Not Contain) function or operator in Salesforce Flows. Also, we will...
Read more >
Workflow error - missing name after . operator
Workflow stuck Workflow error - missing name after . operator Cause The variable being used by the activity is not defined or missing....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found