async 2.16.1 → 2.17.0
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/queue.rb +7 -1
- data/lib/async/version.rb +1 -1
- data/lib/kernel/async.rb +1 -1
- data/lib/kernel/sync.rb +1 -1
- data/readme.md +2 -0
- data/releases.md +4 -0
- data.tar.gz.sig +0 -0
- metadata +2 -2
- 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: a017a6f3304bf910379aeb0f16a40daa7fce7a3de0a3e56c97a359879a3910d1
|
4
|
+
data.tar.gz: '09a048a8b24b6779d23540f85ba8e5a1d6317d9cfc87f91e74af22960a21fd29'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 415e7d9d23c06c60c752bb5b1ecbc336a98bd14b01b33c08bac56e4b8062b6b64761f4fcd8a412455705fb3908b715630beda5eaec7b62e3569e33cb37d235ea
|
7
|
+
data.tar.gz: 8f31cdb2fa5aded62f174683f7a5c62589191bd9263fc9c1d07c78c319592d47f4d3eb46cf92ac0f3005dad219756d16961a6a93823564de1e0263c4f1e70cb3
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/async/queue.rb
CHANGED
@@ -38,12 +38,15 @@ module Async
|
|
38
38
|
end
|
39
39
|
|
40
40
|
# Add an item to the queue.
|
41
|
-
def
|
41
|
+
def push(item)
|
42
42
|
@items << item
|
43
43
|
|
44
44
|
@available.signal unless self.empty?
|
45
45
|
end
|
46
46
|
|
47
|
+
# Compatibility with {::Queue#push}.
|
48
|
+
alias << push
|
49
|
+
|
47
50
|
# Add multiple items to the queue.
|
48
51
|
def enqueue(*items)
|
49
52
|
@items.concat(items)
|
@@ -60,6 +63,9 @@ module Async
|
|
60
63
|
@items.shift
|
61
64
|
end
|
62
65
|
|
66
|
+
# Compatibility with {::Queue#pop}.
|
67
|
+
alias pop dequeue
|
68
|
+
|
63
69
|
# Process each item in the queue.
|
64
70
|
#
|
65
71
|
# @asynchronous Executes the given block concurrently for each item.
|
data/lib/async/version.rb
CHANGED
data/lib/kernel/async.rb
CHANGED
data/lib/kernel/sync.rb
CHANGED
data/readme.md
CHANGED
@@ -35,6 +35,8 @@ Please see the [project documentation](https://socketry.github.io/async/) for mo
|
|
35
35
|
|
36
36
|
Please see the [project releases](https://socketry.github.io/async/releases/index) for all releases.
|
37
37
|
|
38
|
+
### v2.17.0
|
39
|
+
|
38
40
|
### v2.16.0
|
39
41
|
|
40
42
|
- [Better Handling of Async and Sync in Nested Fibers](https://socketry.github.io/async/releases/index#better-handling-of-async-and-sync-in-nested-fibers)
|
data/releases.md
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -63,7 +63,7 @@ cert_chain:
|
|
63
63
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
64
64
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
65
65
|
-----END CERTIFICATE-----
|
66
|
-
date: 2024-
|
66
|
+
date: 2024-09-05 00:00:00.000000000 Z
|
67
67
|
dependencies:
|
68
68
|
- !ruby/object:Gem::Dependency
|
69
69
|
name: console
|
metadata.gz.sig
CHANGED
Binary file
|