/** * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * @format */ /** * Executes actions, attempting to group by a given key */ export default class BatchingQueue { private readonly keyedQueues; private currentKey?; enqueue(key: TKey, action: () => Promise): Promise; private pumpQueue; }