Questions tagged [js-csp]
3 questions
13
votes
1 answer
Using transducers.js in js-csp
I'm playing around with two excellent libraries: js-csp and transducers.js trying to wrap my head around them (and generators).
I think I got a decent understanding of using channels, but when I decided to apply transducers (which I don't quite…
user1816631
0
votes
0 answers
js-csp - Yield until Promise success
What is the best way to yield until success of a Promise using the js-csp library?
For example:
import * as csp from 'js-csp'
const goRoutine = function*()
{
while (true)
{
const payload = yield csp.take(CHANNELS.SAVE_TO_SERVER);
…

sookie
- 2,437
- 3
- 29
- 48
0
votes
1 answer
js-csp operations.mult doesn't distribute a value across the channels
I was playing with js-csp library and it's mult function specifically. I setup a test with a source channel, a couple of channels tapped into mult and a result channel. Yet somehow not all values were distributed to the channels. Here's the…

Andrey Ermakov
- 3,298
- 1
- 25
- 46