0.1.8 • Published 11 years ago
line v0.1.8
line
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')