Promise nuggets
Introduction
The simplest example
Creating new functions
Creating new functions
The power of then - sync processing
The power of then - async operations
The first relief - when sync becomes async
Safety of then - thrown errors
Wrapping callback functions
Multiple operations
Doing things in parallel (async.parallel)
Doing things in series (async.waterfall)
Complex task dependencies
Parallel map (async.map)
Series map (async.mapSeries)
Concurrency level (async.mapLimit)
Advanced examples
Context managers and transactions
Using deferred
Promise-based timeouts