etherpad-lite/src/node/handler
Ray Bellis e7c2fad7b0 convert some async loops into parallel loops
If you use `await` inside a loop it makes the loop inherently serial.

If you omit the `await` however, the tasks will all start but the loop
will finish while the tasks are still being scheduled.

So, to make a set of tasks run in parallel but then have the
code block after the loop once all the tasks have been completed
you have to get an array of Promises (one for each iteration) and
then use `Promise.all()` to wait for those promises to be resolved.
Using `Array#map` is a convenient way to go from an array of inputs
to the require array of Promises.
2019-02-01 00:07:06 +00:00
..
APIHandler.js APIHandler.js: further cleanup 2019-01-30 10:41:10 +00:00
ExportHandler.js import/export: conversion to Promises/async 2019-01-31 08:55:36 +00:00
ImportHandler.js ImportHandler.js: ensure import connection closing happens at the right point 2019-02-08 14:46:05 +00:00
PadMessageHandler.js convert some async loops into parallel loops 2019-02-01 00:07:06 +00:00
SocketIORouter.js SocketIORouter: code formatting cleanups 2019-01-30 10:25:01 +00:00