async function(keys) { return keys.map(key => key + '!'); }
100
[{"key": "a", "time": 10}, {"key": "b", "time": 20}, {"key": "c", "time": 30}]
async function(keys) { await new Promise(res => setTimeout(res, 100)); return keys.map(key => key + '!'); }
100
[{"key": "a", "time": 10}, {"key": "b", "time": 20}, {"key": "c", "time": 30}]
async function(keys) { await new Promise(res => setTimeout(res, keys.length * 100)); return keys.map(key => key + '!'); }
100
[{"key": "a", "time": 10}, {"key": "b", "time": 20}, {"key": "c", "time": 30}, {"key": "d", "time": 40}, {"key": "e", "time": 250}, {"key": "f", "time": 300}]