* 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.
()
| 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 | } |
no test coverage detected