Skip to main content
Module

x/waitgroup/mod.ts

A tiny version of Golang's WaitGroup for Deno with promises and zero dependencies.
Latest
import * as waitgroup from "https://deno.land/x/waitgroup@v1.0.0/mod.ts";

Classes

A WaitGroup waits for a collection of actions to finish. The main goroutine calls add to set the number of actions to wait for. Then each of the actions runs and calls done when finished. At the same time, wait can be used to return a promise that resolves when all actions have finished.