Mirror: 🎩 A tiny but capable push & pull stream library for TypeScript and Flow
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix delay and buffer switch cases

+5 -6
+1
src/web/wonkaJs.re
··· 124 124 | Close when !state.ended => 125 125 state.ended = true; 126 126 state.talkback(. Close); 127 + | Close => () 127 128 | Pull when !state.ended => state.talkback(. Pull) 128 129 | Pull => () 129 130 },
+4 -6
src/wonka_operators.re
··· 71 71 state.ended = true; 72 72 state.sourceTalkback(. Close); 73 73 state.notifierTalkback(. Close); 74 - | Pull => 75 - if (!state.pulled) { 76 - state.pulled = true; 77 - state.sourceTalkback(. Pull); 78 - state.notifierTalkback(. Pull); 79 - } 74 + | Pull when !state.pulled => 75 + state.pulled = true; 76 + state.sourceTalkback(. Pull); 77 + state.notifierTalkback(. Pull); 80 78 | Pull => () 81 79 }; 82 80 },