async 2.6.3 → 2.6.4

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: 85ce7982fbc951dc88c43f5c19fe6d8bbbdd9bfe4dac1d624dbbea07a5d7a6a5
4
- data.tar.gz: 30efe433816cc976e2380332fe86baaa6b7175624d2d3cd9ee46c7c23781007b
3
+ metadata.gz: d54225f46397da0fca5df7594cce6d324448f5232437bd280427bac01cdfc611
4
+ data.tar.gz: d83c10b361eb4b86891e5779dfd2b434d2235a9f381384faf10399da40ef1120
5
5
  SHA512:
6
- metadata.gz: 612c391a6aaed9f793383023f1f29b304d72f1fbb391bc4c320e37ec651708c219026f2488466fcb3731d732d32a47822cd219fa754353f915e3263e7e5c66ce
7
- data.tar.gz: 817645de248bf18e360a7b9d799e900ec3165a1fb16a42efcfa198379c1fb347285f1839fd92d835f0c1dafe08f2a26420b3326e68d6bb023ab2fedce1070f50
6
+ metadata.gz: 8dc3b8d9c4e84139b0a0b3e4293c7a9057fea467374a30a8ed3290b48ac7d623f04c9c00013ffe8f2b8cedcd48b277da173c59985f78a09c62cd845168a1152e
7
+ data.tar.gz: 5cc169eb3b18e594474c3bccf957fdaa661322fa4715b2b0a9d025162d3c54a44e6a464b98f9dc157ad2cdf75a3c2a2369ce959066827b46f6ada37572d8e455
checksums.yaml.gz.sig CHANGED
Binary file
@@ -171,17 +171,11 @@ module Async
171
171
 
172
172
  if timeout
173
173
  timer = @timers.after(timeout) do
174
- fiber.raise(TimeoutError)
174
+ fiber.transfer
175
175
  end
176
176
  end
177
177
 
178
- # Console.logger.info(self, "-> io_wait", fiber, io, events)
179
- events = @selector.io_wait(fiber, io, events)
180
- # Console.logger.info(self, "<- io_wait", fiber, io, events)
181
-
182
- return events
183
- rescue TimeoutError
184
- return false
178
+ return @selector.io_wait(fiber, io, events)
185
179
  ensure
186
180
  timer&.cancel
187
181
  end
data/lib/async/task.rb CHANGED
@@ -190,7 +190,7 @@ module Async
190
190
  @finished.wait
191
191
  end
192
192
 
193
- if @result.is_a?(Exception)
193
+ if @status == :failed
194
194
  raise @result
195
195
  else
196
196
  return @result
data/lib/async/version.rb CHANGED
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2017-2023, by Samuel Williams.
5
5
 
6
6
  module Async
7
- VERSION = "2.6.3"
7
+ VERSION = "2.6.4"
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.3
4
+ version: 2.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -58,7 +58,7 @@ cert_chain:
58
58
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
59
59
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
60
60
  -----END CERTIFICATE-----
61
- date: 2023-07-28 00:00:00.000000000 Z
61
+ date: 2023-08-25 00:00:00.000000000 Z
62
62
  dependencies:
63
63
  - !ruby/object:Gem::Dependency
64
64
  name: console
@@ -266,7 +266,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
266
266
  - !ruby/object:Gem::Version
267
267
  version: '0'
268
268
  requirements: []
269
- rubygems_version: 3.4.7
269
+ rubygems_version: 3.5.0.dev
270
270
  signing_key:
271
271
  specification_version: 4
272
272
  summary: A concurrency framework for Ruby.
metadata.gz.sig CHANGED
Binary file