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 +4 -4
- data/lib/async/container/generic.rb +13 -1
- data/lib/async/container/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19bc64d36ede13657ad4f42b20e594ccee7ef6af39774d121540c0587f0837ee
|
4
|
+
data.tar.gz: 9d21db01d4f1d0fd9b6d84b1b4fb761a4952e3d71ef4d1b0056f690b63f8b05b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 578c614f3ead8955a46f52ddccdeadabb2083efbaf9c97b1f4ff3c57280b7fa65545e5907a9973c7449ba78b699ca732156cd34b770141728b03da231109d3d6
|
7
|
+
data.tar.gz: 6e904405c950ff118529acc49f8cbbaa3505c2a70d8b75ce02ead51829a8dba30af9191853e70875993f3b89284b46d3c7e6c4a0b4a5a1e06fa0b6fdb87d530d
|
@@ -161,7 +161,7 @@ module Async
|
|
161
161
|
|
162
162
|
@statistics.spawn!
|
163
163
|
|
164
|
-
|
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
|
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.
|
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-
|
11
|
+
date: 2021-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|