async 2.0.1 → 2.0.2

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: baad53560ae568056273aa5238c7ec0d3a0dec0d343e5740e6691f82670f4017
4
- data.tar.gz: 3619eae563ec163639de135c3bd043e0d0c80fb3750211f5f37d27863cc21337
3
+ metadata.gz: fc0f12596e4e5aa4503ad424d70afbf365a143b18401102934db193c81241982
4
+ data.tar.gz: 0f7b7072662acb0d45cfb548aa07e96486ebbba8fdd3aa32ce2db3304235a726
5
5
  SHA512:
6
- metadata.gz: 51073edec2fd7249c023490dacbae3a06a65d474495837bb423eff9e23d0fe24885dc43a996dfe325b80869ef79081d8a2ae20f148fbefc95076fea9fb3d5fcf
7
- data.tar.gz: fee5ce5b5ac2c607d47b7371c6db705d51c9a7a66c3dccb31472f8002cde31f1d2710ab009b3d0700f5ee9c4a69d597761700b94b9547af40605c933383918b2
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
- # Remove the task from the waiting list if it's finished:
73
- @tasks.shift if @tasks.first == task
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
@@ -21,5 +21,5 @@
21
21
  # THE SOFTWARE.
22
22
 
23
23
  module Async
24
- VERSION = "2.0.1"
24
+ VERSION = "2.0.2"
25
25
  end
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.1
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-03-13 00:00:00.000000000 Z
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.8
200
+ rubygems_version: 3.3.7
201
201
  signing_key:
202
202
  specification_version: 4
203
203
  summary: A concurrency framework for Ruby.