interface WaitGroup
A WaitGroup is a way to perform fork-join logic in an asynchronous context. It allows a process to create an arbitrary amount of sub-processes, and wait for all of them to finish before continuing.
Companion namespace: WaitGroup
Methods
add
Adds the given amount of processes to the WaitGroup.
add
done
Informs the WaitGroup that a process has completed.
done