package
Control flow like a boss
npm install lineGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Line is designed to work with CoffeeScript.
Here's an example:
line ->
taskWithCallback line.wait()
line (firstTaskResult) ->
anotherTask firstTaskResult, line.wait()
line ->
finalTask line.wait()
line.catch (err) ->
console.log('Oh no! One of the tasks had an error!')
throw err
line.run ->
console.log('All three tasks should be completed')