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

Method signal

packages/core/helpers/barrier.ts:24–29  ·  view source on GitHub ↗

* Signal that a participant has reached the barrier. * * The barrier will be resolved once `targetCount` participants have reached it.

()

Source from the content-addressed store, hash-verified

22 * The barrier will be resolved once `targetCount` participants have reached it.
23 */
24 public signal(): void {
25 this.currentCount += 1;
26 if (this.currentCount === this.targetCount) {
27 this.resolve();
28 }
29 }
30
31 /**
32 * Wait for the barrier to be resolved.

Callers 4

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

Calls 1

resolveMethod · 0.65

Tested by

no test coverage detected