e-threadpool 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +2 -0
- data/lib/threadpool.rb +1 -1
- data/lib/threadpool/core.rb +1 -1
- data/lib/threadpool/job.rb +2 -2
- data/lib/threadpool/worker.rb +2 -2
- metadata +1 -1
data/README.md
CHANGED
@@ -31,6 +31,8 @@ threadpool = Threadpool::Threadpool.new
|
|
31
31
|
100.times.each do
|
32
32
|
# threadpool auto-executes the job after loaded
|
33
33
|
threadpool.load(TestJob.new)
|
34
|
+
# Sleep 10ms, prevent ouput too fast on console.
|
35
|
+
sleep(0.01)
|
34
36
|
end
|
35
37
|
|
36
38
|
# shutdown will wait until all jobs are finished
|
data/lib/threadpool.rb
CHANGED
data/lib/threadpool/core.rb
CHANGED
data/lib/threadpool/job.rb
CHANGED
data/lib/threadpool/worker.rb
CHANGED