async-pool 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 30797072f6201029b50156bd2b6f9ef035790e084a81449b906800a1fb6bcb33
4
- data.tar.gz: d29642965319848394b3d5a2712bfe5a139fac48ec6263029b25b52e9d9fd32b
3
+ metadata.gz: f1ad63ef9b3e6a6e062277b976adefe9e254b9717aa47a33bf9ede37f5009e86
4
+ data.tar.gz: 362cd05e427993817b230ff97ae1844f2299cb0fc5544dbdfafa690e501cbaab
5
5
  SHA512:
6
- metadata.gz: 975f7735a49f0853287bbad466aadf91e0d6b896cdb2c6d88336d94f1d4cee9c227ef8cf4ea63dcc118ca1b709ce109622d8e89f1d90d951d1ea1f261dcfa854
7
- data.tar.gz: 7a75ec0f2d2506b85bc61ec60f3da503ddcfb5277c2390398d5a7b5834cee33b01651405f134e3c80865a5f87a975754f21cceeee1a4a2797f24c9f8efb74948
6
+ metadata.gz: 2484b795cff61e71ff9c1fd2207c7600f809ed7b8352e86e084079dedf0b8451c6c5f096aedd25714146410db3287685e6aa863c057923a36e7d30380bc25eee
7
+ data.tar.gz: 053a39d997a23028079fc17517f5d45bf370dae42e834b55c3956cc5811912993a0f64ddd91d2d4f50e1a2fbea85d1083fd6181871c8cec64f67ccbd0b3a915f
checksums.yaml.gz.sig CHANGED
Binary file
@@ -170,12 +170,10 @@ module Async
170
170
 
171
171
  # It's okay for this to context switch:
172
172
  unused.each do |resource|
173
- if usage = @resources[resource] and usage.zero?
174
- if block_given?
175
- yield resource
176
- else
177
- retire(resource)
178
- end
173
+ if block_given?
174
+ yield resource
175
+ else
176
+ retire(resource)
179
177
  end
180
178
 
181
179
  break if @resources.size <= retain
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Async
7
7
  module Pool
8
- VERSION = "0.6.0"
8
+ VERSION = "0.6.1"
9
9
  end
10
10
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-pool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file