Registry / utility / countdownlatch

countdownlatch

JSON →
library1.0.0rbrubygemsunverified

A synchronization aid that allows one or more threads to wait until a set of operations being performed in other threads completes.

gem install countdownlatch
INSTALL
IMPORT
SIG · COUNTDOWNLATCH
C
countdownlatch
utilityrubyv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CountDownLatch
✓ require 'countdownlatch'

Use CountDownLatch to synchronize threads

require 'countdownlatch' latch = CountDownLatch.new(3) 3.times do Thread.new do # do work latch.count_down end end latch.wait
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
Resources
countdownlatch — gem install countdownlatch · libregistry