async 2.6.1 → 2.6.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: f927b2f4b64bf4a43b901089b38eb64ba01baf0ac37dd970fe52506c31109aa6
4
- data.tar.gz: c61ae34c4bd306249a2a7f28e9c3df4311b8b72672acf98eac4cced17b4c03ad
3
+ metadata.gz: 7ca106126076f17e48b0374812121cb9d30bc9e5eac981b52407db946ce41e00
4
+ data.tar.gz: '0302068031a9aee009ec0fbf1a5045fdae48031f4c2f2ff1914f45c292dd6915'
5
5
  SHA512:
6
- metadata.gz: 1be5a97431b3c73aaee1b990f99bb2c90f0b1c1f5a82f1f63dc7cb79e8009c9a9b24abf17ec34f5efbd1408afa5b19a423e0eaa38b08c9feb76a474aeecf48bc
7
- data.tar.gz: e34b4ae8184222314883f54696ac55ab7fde069e74f05f8c4aea9be7a834b16576642ad8a9bed0000a9b8a3b1102309545940ef8a03a1aafa9c76813a05da0f8
6
+ metadata.gz: 865d56ad3386151e7f417fe00343946be99ae60d620948718e28856aa59fc7f82e8ba28debebb3d025c3a852878456b940dc7e99a1f3a7591873ac7d3a139b2b
7
+ data.tar.gz: 90d108eb53e337ad33b8655c70aaeb22acc64eba534a7096cd9053938ab3654858e4a72a7d2872ffaaa7c708ba2049c629c30a7a00ace4b370f799e99da85525
checksums.yaml.gz.sig CHANGED
Binary file
@@ -258,9 +258,12 @@ module Async
258
258
 
259
259
  @interrupted = false
260
260
 
261
- while self.run_once
262
- if @interrupted
263
- break
261
+ # In theory, we could use Exception here to be a little bit safer, but we've only shown the case for SignalException to be a problem, so let's not over-engineer this.
262
+ Thread.handle_interrupt(SignalException => :never) do
263
+ while self.run_once
264
+ if @interrupted || Thread.pending_interrupt?
265
+ break
266
+ end
264
267
  end
265
268
  end
266
269
 
data/lib/async/version.rb CHANGED
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2017-2022, by Samuel Williams.
5
5
 
6
6
  module Async
7
- VERSION = "2.6.1"
7
+ VERSION = "2.6.2"
8
8
  end
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.6.1
4
+ version: 2.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -56,7 +56,7 @@ cert_chain:
56
56
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
57
57
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
58
58
  -----END CERTIFICATE-----
59
- date: 2023-06-09 00:00:00.000000000 Z
59
+ date: 2023-06-13 00:00:00.000000000 Z
60
60
  dependencies:
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: console
@@ -261,7 +261,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
261
261
  - !ruby/object:Gem::Version
262
262
  version: '0'
263
263
  requirements: []
264
- rubygems_version: 3.5.0.dev
264
+ rubygems_version: 3.4.7
265
265
  signing_key:
266
266
  specification_version: 4
267
267
  summary: A concurrency framework for Ruby.
metadata.gz.sig CHANGED
Binary file