Registry / utility / work-queue

work-queue

JSON →
library2.5.4rbrubygemsunverified

A tunable work queue for coordinating work between a producer and a pool of worker threads.

gem install work_queue
INSTALL
IMPORT
SIG · WORK-QUEUE
W
work-queue
utilityrubyv2.5.4
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.

WorkQueue
✓ require 'work_queue'

Create a work queue with 2 workers and enqueue a task

require 'work_queue' wq = WorkQueue.new(2) # 2 worker threads wq.enqueue_b { sleep 1; puts 'Task done' } wq.join
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.5.4latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
work-queue — gem install work-queue · libregistry