This is a fork of Teamwork.
Usage
const Barrier = ; const main = async { const barrier = ; ; await barrier;};
Pass limits
You can specify a number in the constructor for the number of times a barrier should be passed before it resolves.
const Barrier = ; const main = async { const barrier = 2; ; await barrier;};
Providing return values
const Barrier = ; const main = async { const barrier = ; ; // value equals 'result' const value = await barrier;};