Proposal: Drain operator #6634
vitaly-t
started this conversation in
Ideas / Feature request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In our company, we found the following generic operator being quite useful:
Usage Examples
When we want to measure how long it takes a finite stream to complete, we use the following helper:
so when we want to measure any particular stream, we can just add this operator, and then log the result:
Other examples are when we want source observable drained first, and then a new observable created:
I wish such
drain
operator were part of RXJS ;)Beta Was this translation helpful? Give feedback.
All reactions