async-pool 0.10.0 → 0.10.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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/async/pool/controller.rb +5 -17
- data/lib/async/pool/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +3 -3
- 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: 9e6e8dc07c2eb994f4dbf4080dee0fee32bd965cb10a103798673d05a6a71078
|
|
4
|
+
data.tar.gz: 551b810930f43923d32f7236f48922311fb99e14243408e79f7d8f5f28dd3f0b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f368abe8db1c8e04cba458cac6377d0dbd594dd78ceb1baf39f4ac8db6ca32e699525be155b828b0d8ff82e476c532548a83592bdfb7c169af749f5c06c5622
|
|
7
|
+
data.tar.gz: aa19bcf1f837e7c1c2472afae94ccb6f0af39ad6e7520b80d09d5f99756ff0adcbf81750b53a8934620d63cd64371f8c46640af18ba1e97c72f9c737d4fad34c
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
|
@@ -324,11 +324,7 @@ module Async
|
|
|
324
324
|
def available_resource
|
|
325
325
|
resource = nil
|
|
326
326
|
|
|
327
|
-
Console.debug(self, "Acquiring concurrency guard...", blocking: @guard.blocking?)
|
|
328
|
-
|
|
329
327
|
@guard.acquire do
|
|
330
|
-
Console.debug(self, "Acquired concurrency guard.")
|
|
331
|
-
|
|
332
328
|
resource = acquire_or_create_resource
|
|
333
329
|
end
|
|
334
330
|
|
|
@@ -390,11 +386,9 @@ module Async
|
|
|
390
386
|
def create_resource(...)
|
|
391
387
|
attributes = {
|
|
392
388
|
concurrency: @guard.limit,
|
|
393
|
-
size: @resources.size,
|
|
394
|
-
limit: @limit,
|
|
395
389
|
}
|
|
396
390
|
|
|
397
|
-
|
|
391
|
+
attributes.merge!(@tags) if @tags
|
|
398
392
|
|
|
399
393
|
Traces.trace('async.pool.create', attributes: attributes) {super}
|
|
400
394
|
end
|
|
@@ -404,44 +398,38 @@ module Async
|
|
|
404
398
|
size: @resources.size,
|
|
405
399
|
}
|
|
406
400
|
|
|
407
|
-
|
|
401
|
+
attributes.merge!(@tags) if @tags
|
|
408
402
|
|
|
409
403
|
Traces.trace('async.pool.drain', attributes: attributes) {super}
|
|
410
404
|
end
|
|
411
405
|
|
|
412
406
|
def acquire(...)
|
|
413
407
|
attributes = {
|
|
414
|
-
concurrency: @guard.limit,
|
|
415
408
|
size: @resources.size,
|
|
416
409
|
limit: @limit,
|
|
417
410
|
}
|
|
418
411
|
|
|
419
|
-
|
|
412
|
+
attributes.merge!(@tags) if @tags
|
|
420
413
|
|
|
421
414
|
Traces.trace('async.pool.acquire', attributes: attributes) {super}
|
|
422
415
|
end
|
|
423
416
|
|
|
424
417
|
def release(...)
|
|
425
418
|
attributes = {
|
|
426
|
-
concurrency: @guard.limit,
|
|
427
419
|
size: @resources.size,
|
|
428
|
-
limit: @limit,
|
|
429
420
|
}
|
|
430
421
|
|
|
431
|
-
|
|
422
|
+
attributes.merge!(@tags) if @tags
|
|
432
423
|
|
|
433
424
|
Traces.trace('async.pool.release', attributes: attributes) {super}
|
|
434
425
|
end
|
|
435
426
|
|
|
436
427
|
def retire(...)
|
|
437
428
|
attributes = {
|
|
438
|
-
concurrency: @guard.limit,
|
|
439
429
|
size: @resources.size,
|
|
440
|
-
limit: @limit,
|
|
441
|
-
**@tags,
|
|
442
430
|
}
|
|
443
431
|
|
|
444
|
-
|
|
432
|
+
attributes.merge!(@tags) if @tags
|
|
445
433
|
|
|
446
434
|
Traces.trace('async.pool.retire', attributes: attributes) {super}
|
|
447
435
|
end
|
data/lib/async/pool/version.rb
CHANGED
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.10.
|
|
4
|
+
version: 0.10.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samuel Williams
|
|
@@ -40,7 +40,7 @@ cert_chain:
|
|
|
40
40
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
|
41
41
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
|
42
42
|
-----END CERTIFICATE-----
|
|
43
|
-
date: 2024-
|
|
43
|
+
date: 2024-11-13 00:00:00.000000000 Z
|
|
44
44
|
dependencies:
|
|
45
45
|
- !ruby/object:Gem::Dependency
|
|
46
46
|
name: async
|
|
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
104
104
|
- !ruby/object:Gem::Version
|
|
105
105
|
version: '0'
|
|
106
106
|
requirements: []
|
|
107
|
-
rubygems_version: 3.5.
|
|
107
|
+
rubygems_version: 3.5.22
|
|
108
108
|
signing_key:
|
|
109
109
|
specification_version: 4
|
|
110
110
|
summary: A singleplex and multiplex resource pool for implementing robust clients.
|
metadata.gz.sig
CHANGED
|
Binary file
|