Software Engineer @ Dynamatik.
Node.js, Android & iOS Developer.
@FaisalAbid
Posts tagged is

Node NextFlow

I’ve been looking for a great Node.js async flow library that I can easily use in Coffeescript and I found this. Its awesome!


next = require(‘nextflow’)

vals = []
x = 0

next flow =
1: ->
vals.push(1)
@next()
2: ->
vals.push(2)
x = Math.random()
@next(x)
3: (num) ->
vals.push(num)
@next()
4: ->
vals.push(4)
@next()
5: ->
console.log vals[0] 1
console.log vals[1] 2
console.log vals[2] x
console.log vals[3] 4