├── .eslintrc ├── .github ├── dependabot.yml └── workflows │ └── ci.yml ├── .gitignore ├── .nvmrc ├── README.md ├── babel.config.json ├── bubbleprof ├── README.md ├── basic-async-func.html ├── basic-async-func.js ├── basic.html ├── basic.js ├── files-async-parallel.html ├── files-async-parallel.js ├── files-async.html ├── files-async.js ├── files.html └── files.js ├── exercises ├── section1 │ ├── order │ │ ├── README.md │ │ ├── first.js │ │ ├── first.mjs │ │ └── second.js │ └── puzzle │ │ ├── README.md │ │ ├── puzzle.js │ │ └── puzzle.mjs ├── section2 │ ├── async-callbacks │ │ ├── README.md │ │ ├── after.js │ │ ├── before.js │ │ └── test.js │ ├── caching-promises │ │ ├── README.md │ │ ├── broken.js │ │ └── fixed.js │ ├── convert-callbacks │ │ ├── README.md │ │ ├── after.js │ │ ├── before.js │ │ └── test.js │ ├── event-handler-error-handling │ │ ├── README.md │ │ ├── better.js │ │ ├── broken.js │ │ ├── but-still-broken.js │ │ ├── fixed-better.js │ │ ├── fixed-once.js │ │ ├── fixed.js │ │ └── still-broken.js │ └── stream-error-handling │ │ ├── README.md │ │ ├── better.js │ │ ├── broken.js │ │ └── fixed.js └── section3 │ ├── bluebird │ ├── README.md │ ├── example.js │ └── package.json │ ├── http-server │ ├── README.md │ ├── after.js │ ├── before.js │ ├── final.js │ └── hello_world.js │ ├── piscina-stream-in │ ├── .gitignore │ ├── README.md │ ├── generate.js │ ├── index.js │ ├── progress.js │ └── worker.js │ ├── process-race │ ├── README.md │ ├── after.js │ └── before.js │ └── promise-all │ ├── README.md │ ├── first.js │ ├── second.js │ └── third.js ├── package.json ├── prettier.config.js └── test └── smoke.test.js /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | data.csv 3 | .clinic 4 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | lts/* -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/README.md -------------------------------------------------------------------------------- /babel.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/babel.config.json -------------------------------------------------------------------------------- /bubbleprof/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/bubbleprof/README.md -------------------------------------------------------------------------------- /bubbleprof/basic-async-func.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/bubbleprof/basic-async-func.html -------------------------------------------------------------------------------- /bubbleprof/basic-async-func.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/bubbleprof/basic-async-func.js -------------------------------------------------------------------------------- /bubbleprof/basic.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/bubbleprof/basic.html -------------------------------------------------------------------------------- /bubbleprof/basic.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/bubbleprof/basic.js -------------------------------------------------------------------------------- /bubbleprof/files-async-parallel.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/bubbleprof/files-async-parallel.html -------------------------------------------------------------------------------- /bubbleprof/files-async-parallel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/bubbleprof/files-async-parallel.js -------------------------------------------------------------------------------- /bubbleprof/files-async.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/bubbleprof/files-async.html -------------------------------------------------------------------------------- /bubbleprof/files-async.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/bubbleprof/files-async.js -------------------------------------------------------------------------------- /bubbleprof/files.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/bubbleprof/files.html -------------------------------------------------------------------------------- /bubbleprof/files.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/bubbleprof/files.js -------------------------------------------------------------------------------- /exercises/section1/order/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section1/order/README.md -------------------------------------------------------------------------------- /exercises/section1/order/first.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section1/order/first.js -------------------------------------------------------------------------------- /exercises/section1/order/first.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section1/order/first.mjs -------------------------------------------------------------------------------- /exercises/section1/order/second.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section1/order/second.js -------------------------------------------------------------------------------- /exercises/section1/puzzle/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section1/puzzle/README.md -------------------------------------------------------------------------------- /exercises/section1/puzzle/puzzle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section1/puzzle/puzzle.js -------------------------------------------------------------------------------- /exercises/section1/puzzle/puzzle.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section1/puzzle/puzzle.mjs -------------------------------------------------------------------------------- /exercises/section2/async-callbacks/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section2/async-callbacks/README.md -------------------------------------------------------------------------------- /exercises/section2/async-callbacks/after.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section2/async-callbacks/after.js -------------------------------------------------------------------------------- /exercises/section2/async-callbacks/before.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section2/async-callbacks/before.js -------------------------------------------------------------------------------- /exercises/section2/async-callbacks/test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section2/async-callbacks/test.js -------------------------------------------------------------------------------- /exercises/section2/caching-promises/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section2/caching-promises/README.md -------------------------------------------------------------------------------- /exercises/section2/caching-promises/broken.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section2/caching-promises/broken.js -------------------------------------------------------------------------------- /exercises/section2/caching-promises/fixed.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section2/caching-promises/fixed.js -------------------------------------------------------------------------------- /exercises/section2/convert-callbacks/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section2/convert-callbacks/README.md -------------------------------------------------------------------------------- /exercises/section2/convert-callbacks/after.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section2/convert-callbacks/after.js -------------------------------------------------------------------------------- /exercises/section2/convert-callbacks/before.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section2/convert-callbacks/before.js -------------------------------------------------------------------------------- /exercises/section2/convert-callbacks/test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section2/convert-callbacks/test.js -------------------------------------------------------------------------------- /exercises/section2/event-handler-error-handling/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section2/event-handler-error-handling/README.md -------------------------------------------------------------------------------- /exercises/section2/event-handler-error-handling/better.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section2/event-handler-error-handling/better.js -------------------------------------------------------------------------------- /exercises/section2/event-handler-error-handling/broken.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section2/event-handler-error-handling/broken.js -------------------------------------------------------------------------------- /exercises/section2/event-handler-error-handling/but-still-broken.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section2/event-handler-error-handling/but-still-broken.js -------------------------------------------------------------------------------- /exercises/section2/event-handler-error-handling/fixed-better.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section2/event-handler-error-handling/fixed-better.js -------------------------------------------------------------------------------- /exercises/section2/event-handler-error-handling/fixed-once.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section2/event-handler-error-handling/fixed-once.js -------------------------------------------------------------------------------- /exercises/section2/event-handler-error-handling/fixed.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section2/event-handler-error-handling/fixed.js -------------------------------------------------------------------------------- /exercises/section2/event-handler-error-handling/still-broken.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section2/event-handler-error-handling/still-broken.js -------------------------------------------------------------------------------- /exercises/section2/stream-error-handling/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section2/stream-error-handling/README.md -------------------------------------------------------------------------------- /exercises/section2/stream-error-handling/better.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section2/stream-error-handling/better.js -------------------------------------------------------------------------------- /exercises/section2/stream-error-handling/broken.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section2/stream-error-handling/broken.js -------------------------------------------------------------------------------- /exercises/section2/stream-error-handling/fixed.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section2/stream-error-handling/fixed.js -------------------------------------------------------------------------------- /exercises/section3/bluebird/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section3/bluebird/README.md -------------------------------------------------------------------------------- /exercises/section3/bluebird/example.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section3/bluebird/example.js -------------------------------------------------------------------------------- /exercises/section3/bluebird/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section3/bluebird/package.json -------------------------------------------------------------------------------- /exercises/section3/http-server/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section3/http-server/README.md -------------------------------------------------------------------------------- /exercises/section3/http-server/after.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section3/http-server/after.js -------------------------------------------------------------------------------- /exercises/section3/http-server/before.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section3/http-server/before.js -------------------------------------------------------------------------------- /exercises/section3/http-server/final.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section3/http-server/final.js -------------------------------------------------------------------------------- /exercises/section3/http-server/hello_world.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section3/http-server/hello_world.js -------------------------------------------------------------------------------- /exercises/section3/piscina-stream-in/.gitignore: -------------------------------------------------------------------------------- 1 | data.csv 2 | -------------------------------------------------------------------------------- /exercises/section3/piscina-stream-in/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section3/piscina-stream-in/README.md -------------------------------------------------------------------------------- /exercises/section3/piscina-stream-in/generate.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section3/piscina-stream-in/generate.js -------------------------------------------------------------------------------- /exercises/section3/piscina-stream-in/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section3/piscina-stream-in/index.js -------------------------------------------------------------------------------- /exercises/section3/piscina-stream-in/progress.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section3/piscina-stream-in/progress.js -------------------------------------------------------------------------------- /exercises/section3/piscina-stream-in/worker.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section3/piscina-stream-in/worker.js -------------------------------------------------------------------------------- /exercises/section3/process-race/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section3/process-race/README.md -------------------------------------------------------------------------------- /exercises/section3/process-race/after.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section3/process-race/after.js -------------------------------------------------------------------------------- /exercises/section3/process-race/before.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section3/process-race/before.js -------------------------------------------------------------------------------- /exercises/section3/promise-all/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section3/promise-all/README.md -------------------------------------------------------------------------------- /exercises/section3/promise-all/first.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section3/promise-all/first.js -------------------------------------------------------------------------------- /exercises/section3/promise-all/second.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section3/promise-all/second.js -------------------------------------------------------------------------------- /exercises/section3/promise-all/third.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/exercises/section3/promise-all/third.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/package.json -------------------------------------------------------------------------------- /prettier.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/prettier.config.js -------------------------------------------------------------------------------- /test/smoke.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nearform/promises-workshop/HEAD/test/smoke.test.js --------------------------------------------------------------------------------