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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/async/pool/controller.rb +4 -6
- data/lib/async/pool/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1ad63ef9b3e6a6e062277b976adefe9e254b9717aa47a33bf9ede37f5009e86
|
4
|
+
data.tar.gz: 362cd05e427993817b230ff97ae1844f2299cb0fc5544dbdfafa690e501cbaab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
174
|
-
|
175
|
-
|
176
|
-
|
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
|
data/lib/async/pool/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|