dt-app
Version:
The Dynatrace App Toolkit is a tool you can use from your command line to create, develop, and deploy apps on your Dynatrace environment.
9 lines (8 loc) • 646 B
TypeScript
export declare const queue: Array<() => Promise<unknown>>;
export declare let isProcessing: boolean;
/** This function returns a Promise<T> that resolves as soon as the function gets called from during the queue processing. */
export declare function enqueue<T>(func: () => Promise<T>): Promise<T>;
/** Shifts the first function from the queue and executes it */
export declare function processQueue(): Promise<void>;
/** Enqueues a function that is called whenever all the function, added previously by other processes, have been successfully executed. */
export declare function terminalAction<T>(promptFunction: () => Promise<T>): Promise<T>;