threadpool 0.0.1.2 → 0.0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/threadpool.rb +4 -1
  2. data/threadpool.gemspec +1 -1
  3. metadata +1 -1
data/lib/threadpool.rb CHANGED
@@ -14,7 +14,10 @@ require 'thread'
14
14
  module Awakenable
15
15
  def sleep (time = nil)
16
16
  @awakenable ||= IO.pipe
17
- @awakenable.first.read_nonblock 1337 rescue nil
17
+
18
+ begin
19
+ @awakenable.first.read_nonblock 2048
20
+ rescue Errno::EAGAIN; end
18
21
 
19
22
  IO.select([@awakenable.first], nil, nil, time)
20
23
  end
data/threadpool.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new {|s|
2
2
  s.name = 'threadpool'
3
- s.version = '0.0.1.2'
3
+ s.version = '0.0.1.3'
4
4
  s.author = 'meh.'
5
5
  s.email = 'meh@paranoici.org'
6
6
  s.homepage = 'http://github.com/meh/threadpool'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: threadpool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.2
4
+ version: 0.0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: