0no-co / wonka

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

Fix take operator not supporting take(0) and not respecting Close #47

Closed kitten closed 4 years ago

kitten commented 4 years ago

Fix cases where take is called with <= 0 as the max number.

Also fix the passesSinkClose case where after take has ended, an End signal would still be forwarded due to some confusion with state.taken