-
Notifications
You must be signed in to change notification settings - Fork 207
Recipes
Brian Cavalier edited this page Aug 13, 2017
·
10 revisions
These recipes show how to use existing operations to build new ones, how to solve problems in interesting ways, and are also helpful in learning how to "think in streams".
- Repeat - Repeat the behavior of a stream N times
- Retry - Retry a stream up to N times after failures
-
Pairwise - Create a stream of pairs
[previous value, current value]
- Race - Pick the stream with the earliest first event
- Event delegation - Use Element.matches for container-level event handling
- Unfold promises - Build a stream functionally using promises
- Ignore Errors - Filter out and silently ignore rejected promises