MCPcopy
hub / github.com/nestjs/nest / signalAndWait

Method signalAndWait

packages/core/helpers/barrier.ts:47–50  ·  view source on GitHub ↗

* 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.

()

Source from the content-addressed store, hash-verified

45 * @returns A promise that resolves when the barrier is resolved.
46 */
47 public async signalAndWait(): Promise<void> {
48 this.signal();
49 return this.wait();
50 }
51}

Callers 3

resolvePropertiesMethod · 0.95
resolveParamMethod · 0.80
barrier.spec.tsFile · 0.80

Calls 2

signalMethod · 0.95
waitMethod · 0.95

Tested by

no test coverage detected