async-container 0.16.9 → 0.16.10

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: a76bd927dba80c9eb45b6e0c4ba41c463bfcbe1ffa90ff00b1cef7375e522670
4
- data.tar.gz: 41aa83bb3be7be3ab3cdd8f2f7065a4960b800acdd39d5c89f2c420d70cc312b
3
+ metadata.gz: 19bc64d36ede13657ad4f42b20e594ccee7ef6af39774d121540c0587f0837ee
4
+ data.tar.gz: 9d21db01d4f1d0fd9b6d84b1b4fb761a4952e3d71ef4d1b0056f690b63f8b05b
5
5
  SHA512:
6
- metadata.gz: 2c7878995dea584f4c5284214a5d96074ada191a2d54d07cc7f1dc6815e03edbc60ff729bc5f377c11a1ed00f531019aabefe89b13f04e7d305edcd6110a6770
7
- data.tar.gz: ac4e0f6e39e315311283a71a8a24cfc64980c352c21bdc0a33fdcfd4217d4564b72229450583000263b814a668bbb1ae81cfa3c420e001ec042da58ccf650d75
6
+ metadata.gz: 578c614f3ead8955a46f52ddccdeadabb2083efbaf9c97b1f4ff3c57280b7fa65545e5907a9973c7449ba78b699ca732156cd34b770141728b03da231109d3d6
7
+ data.tar.gz: 6e904405c950ff118529acc49f8cbbaa3505c2a70d8b75ce02ead51829a8dba30af9191853e70875993f3b89284b46d3c7e6c4a0b4a5a1e06fa0b6fdb87d530d
@@ -161,7 +161,7 @@ module Async
161
161
 
162
162
  @statistics.spawn!
163
163
 
164
- Fiber.new do
164
+ fiber do
165
165
  while @running
166
166
  child = self.start(name, &block)
167
167
 
@@ -270,6 +270,18 @@ module Async
270
270
 
271
271
  @state.delete(child)
272
272
  end
273
+
274
+ private
275
+
276
+ if Fiber.respond_to?(:blocking)
277
+ def fiber(&block)
278
+ Fiber.new(blocking: true, &block)
279
+ end
280
+ else
281
+ def fiber(&block)
282
+ Fiber.new(&block)
283
+ end
284
+ end
273
285
  end
274
286
  end
275
287
  end
@@ -22,6 +22,6 @@
22
22
 
23
23
  module Async
24
24
  module Container
25
- VERSION = "0.16.9"
25
+ VERSION = "0.16.10"
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-container
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.9
4
+ version: 0.16.10
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-05-07 00:00:00.000000000 Z
11
+ date: 2021-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async