async 1.29.2 → 1.30.0

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: 3613e4f3c3948bdf49fba954cca2f5df7934c52773dc533c424485aebaf800d6
4
- data.tar.gz: ef790cb3bf5bb3bd248cbae57917f8a1598ffb94acef79a024e3d786e663f3ff
3
+ metadata.gz: e5d9fe2eaa3012c11c39abb23dc7482ec2a224123ed4ef4424bb630b50f8d462
4
+ data.tar.gz: 113adfafc25504e6f330f36dbd46707dc883e197c36d8530f0a58555ac55b8d4
5
5
  SHA512:
6
- metadata.gz: 99f619c7c76e7767b49ba8ff67e243a015b7a9f981df347ed4271c4bfafa1a465822293d177d42fd7e2ea184a628579853c233e060522e4a4f388c201a26ae12
7
- data.tar.gz: 28046633dc2f14dae25828666cf611b9bd8d96fdaa140fc66126b4a3b48030d8811fd1081e4c9ecc46288eaa7b5d962a0845e54a81873b47bc9d3407c9f3b0a1
6
+ metadata.gz: 973e99f9ff361ad1cdf62f074fd6897c6691304ea004dae58aece3309fddd713c5921bf02ff42bd748999f18e2ebf172bd1505a8af318e9cb5c70e23a858145c
7
+ data.tar.gz: 88001bc4a38cd8a7fec4748ee89ee4b779c77eb925ed6e93923807fd57d4bc0227feffe43e54de55056c48b1705c1b551b1d26529525318d70a61986788919c0
data/lib/async/barrier.rb CHANGED
@@ -56,5 +56,11 @@ module Async
56
56
  task.wait
57
57
  end
58
58
  end
59
+
60
+ def stop
61
+ while task = @tasks.shift
62
+ task.stop
63
+ end
64
+ end
59
65
  end
60
66
  end
data/lib/async/version.rb CHANGED
@@ -21,5 +21,5 @@
21
21
  # THE SOFTWARE.
22
22
 
23
23
  module Async
24
- VERSION = "1.29.2"
24
+ VERSION = "1.30.0"
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.29.2
4
+ version: 1.30.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-16 00:00:00.000000000 Z
11
+ date: 2021-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: console