Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

threaded_processor

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

threaded_processor - rubygems Package Compare versions

Comparing version
0.1
to
0.1.1
+23
-1
lib/threaded_processor.rb

@@ -1,3 +0,25 @@

VERSION = 0.1
# ThreadedProcessor : A very simple wrapper for sized queue multithreading with Ruby
#
# = Usage
#
# object_list = %w(1..100).to_a
# threads = 5
# tp = ThreadedProcessor.new(object_list,threads) do |obj|
# puts obj
# end
# tp.run!
#
# OR
#
# tp = ThreadedProcessor.new
# tp.list = [1,2,3]
# tp << 4
# tp << 5
# tp.block = Proc.new{|x| puts x}
# tp.max_threads = 5
# tp.run!
VERSION = "0.1.1"
require 'thread'

@@ -4,0 +26,0 @@