Bundle
System support for threads and runtime concurrency
CountDownLatch
One-shot countdown latch: threads wait in Await until CountDown has been called the given number of times. Once the count reaches zero it stays there, and Await returns at once.
Example
latch := CountDownLatch->New(2);
latch->CountDown();
latch->GetCount()->PrintLine(); # 1
latch->CountDown();
latch->Await(); # returns at once: the count is 0Operations
CountDown #
Lowers the count by one, releasing every waiting thread when it reaches zero
method : public : CountDown() ~ Nil