(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
SQLSERVER_SA_PASSWORD=%%placeholder%% | |
SQLSERVER_DATA_PATH=/path/to/some/local/dir/data | |
SQLSERVER_LOG_PATH=/path/to/some/local/dir/log | |
SQLSERVER_SECRETS_PATH=/path/to/some/local/dir/secret | |
AZURITE_DATA_PATH=/path/to/some/local/dir/azurite | |
MIGRATION_CONNECTION_STRING=%%Placeholder%% |
var Promise = require('bluebird'); | |
var funcs = Promise.resolve([500, 100, 400, 200].map((n) => makeWait(n))); | |
funcs | |
.each(iterator) // logs: 500, 100, 400, 200 | |
.then(console.log) // logs: [ [Function], [Function], [Function], [Function] ] | |
funcs | |
.mapSeries(iterator) // logs: 500, 100, 400, 200 |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.