async 2.0.1 → 2.0.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
- data/lib/async/barrier.rb +5 -2
- data/lib/async/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fc0f12596e4e5aa4503ad424d70afbf365a143b18401102934db193c81241982
|
|
4
|
+
data.tar.gz: 0f7b7072662acb0d45cfb548aa07e96486ebbba8fdd3aa32ce2db3304235a726
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9accc918375f64401d7f6f1f5086e84a50a367b18caf100dce07ca1ec39f1ddb5411b8072f1d498ace92ba31beb4f6ee0ab4b9b26de8f3afc94a6d0c5c05d57b
|
|
7
|
+
data.tar.gz: 997b2d6622b543387a43a4b8962e66b80da20ee71e7a9fb61565b5969421f36cb12aa88a94a31c99dd3311216a621886467553cb0d2fbec56f951e8322b84d84
|
data/lib/async/barrier.rb
CHANGED
|
@@ -69,8 +69,11 @@ module Async
|
|
|
69
69
|
begin
|
|
70
70
|
task.wait
|
|
71
71
|
ensure
|
|
72
|
-
#
|
|
73
|
-
|
|
72
|
+
# We don't know for sure that the exception was due to the task completion.
|
|
73
|
+
unless task.running?
|
|
74
|
+
# Remove the task from the waiting list if it's finished:
|
|
75
|
+
@tasks.shift if @tasks.first == task
|
|
76
|
+
end
|
|
74
77
|
end
|
|
75
78
|
end
|
|
76
79
|
end
|
data/lib/async/version.rb
CHANGED
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.0.
|
|
4
|
+
version: 2.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samuel Williams
|
|
@@ -25,7 +25,7 @@ authors:
|
|
|
25
25
|
autorequire:
|
|
26
26
|
bindir: bin
|
|
27
27
|
cert_chain: []
|
|
28
|
-
date: 2022-
|
|
28
|
+
date: 2022-05-04 00:00:00.000000000 Z
|
|
29
29
|
dependencies:
|
|
30
30
|
- !ruby/object:Gem::Dependency
|
|
31
31
|
name: console
|
|
@@ -197,7 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
197
197
|
- !ruby/object:Gem::Version
|
|
198
198
|
version: '0'
|
|
199
199
|
requirements: []
|
|
200
|
-
rubygems_version: 3.3.
|
|
200
|
+
rubygems_version: 3.3.7
|
|
201
201
|
signing_key:
|
|
202
202
|
specification_version: 4
|
|
203
203
|
summary: A concurrency framework for Ruby.
|