0no-co / wonka

🎩 A tiny but capable push & pull stream library for TypeScript and Flow
MIT License
709 stars 29 forks source link

Fix cold sources for {concat,switch,merge}Map #52

Closed kitten closed 4 years ago

kitten commented 4 years ago

All of the flattening map operators weren't respecting pulls on cold sources. More care needs to go into when a flattening map operator can pull on the source or on inner sources to prevent overflowing (infinite pulls from either inner sources or the outer source) or double pulling.