Initial commit - Event Planner application
This commit is contained in:
30
node_modules/@nestjs/core/helpers/barrier.d.ts
generated
vendored
Normal file
30
node_modules/@nestjs/core/helpers/barrier.d.ts
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
/**
|
||||
* A simple barrier to synchronize flow of multiple async operations.
|
||||
*/
|
||||
export declare class Barrier {
|
||||
private currentCount;
|
||||
private targetCount;
|
||||
private promise;
|
||||
private resolve;
|
||||
constructor(targetCount: number);
|
||||
/**
|
||||
* Signal that a participant has reached the barrier.
|
||||
*
|
||||
* The barrier will be resolved once `targetCount` participants have reached it.
|
||||
*/
|
||||
signal(): void;
|
||||
/**
|
||||
* Wait for the barrier to be resolved.
|
||||
*
|
||||
* @returns A promise that resolves when the barrier is resolved.
|
||||
*/
|
||||
wait(): Promise<void>;
|
||||
/**
|
||||
* Signal that a participant has reached the barrier and wait for the barrier to be resolved.
|
||||
*
|
||||
* The barrier will be resolved once `targetCount` participants have reached it.
|
||||
*
|
||||
* @returns A promise that resolves when the barrier is resolved.
|
||||
*/
|
||||
signalAndWait(): Promise<void>;
|
||||
}
|
||||
Reference in New Issue
Block a user