ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export interface ITask<T> {
(): T;
}
/**
* A helper to prevent accumulation of sequential async tasks.
*
* Imagine a mail man with the sole task of delivering letters. As soon as
* a letter submitted for delivery, he drives to the destination, delivers it
* and returns to his base. Imagine that during the trip, N more letters were submitted.
* When the mail man returns, he picks those N letters and delivers them all in a
* single trip. Even though N+1 submissions occurred, only 2 deliveries were made.
*
* The throttler implements this via the queue() method, by providing it a task
* factory. Following the example:
*
* var throttler = new Throttler();
* var letters = [];
*
* function letterReceived(l) {
* letters.push(l);
* throttler.queue(() => { return makeTheTrip(); });
* }
*/
export class Throttler<T> {
private activePromise: Promise<T> | null;
private queuedPromise: Promise
queuedPromiseFactory ITask
activePromise
queuedPromise
queuedPromiseFactory
promiseFactory ITask
activePromise
queuedPromiseFactory promiseFactory
queuedPromise
queuedPromise
result queuedPromiseFactory
queuedPromiseFactory
result
queuedPromise resolve
activePromiseonComplete onCompleteresolve
resolve reject
queuedPromiseresolve reject
activePromise
resolve reject
activePromiseresult
activePromise
result
err
activePromise
err
defaultDelay
timeout NodeJSTimer
completionPromise
onResolve value PromiseLike
task ITask
defaultDelay
defaultDelay defaultDelay
timeout
completionPromise
onResolve
task
task ITask delay defaultDelay
task task
completionPromise
completionPromise resolve
onResolve resolve
completionPromise
onResolve
result task
task
result
timeout
timeout
onResolve
delay
completionPromise
timeout
completionPromise
completionPromise
timeout
timeout
timeout
throttler Throttler
defaultDelay
defaultDelay
throttler
override promiseFactory ITask delay
throttlerpromiseFactory delay