async 1.28.2 → 1.28.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/async/scheduler.rb +5 -3
- data/lib/async/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: 77c63d6ea5723e686a2b72bd7bac1055aa293df4f4583915124a657cd39e6a74
|
4
|
+
data.tar.gz: 3f58014dc1430f1a03bc16a69f19020a8fc3aefb4280e9026fea74fe89118ee1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca3d285761dd73820c81a56e3bc55a11780e915652d07f611be3723934345f0204d0949b0b5f3a86480b231cdbf37515404eb38152d1771b564932798cb96e70
|
7
|
+
data.tar.gz: fa3cc87e0064c5a63c0f3b3683270c0e1ad9a2db283c131b139bbfd3c337399d8646824377c512b8e2245bc70f6ba213afda6e84391c4caaa4b8764c6587955d
|
data/lib/async/scheduler.rb
CHANGED
@@ -102,11 +102,13 @@ module Async
|
|
102
102
|
end
|
103
103
|
|
104
104
|
def fiber(&block)
|
105
|
-
task = Task.new(&block)
|
105
|
+
task = Task.new(@reactor, &block)
|
106
106
|
|
107
|
-
task.
|
107
|
+
fiber = task.fiber
|
108
108
|
|
109
|
-
|
109
|
+
task.run
|
110
|
+
|
111
|
+
return fiber
|
110
112
|
end
|
111
113
|
end
|
112
114
|
end
|
data/lib/async/version.rb
CHANGED
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.28.
|
4
|
+
version: 1.28.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: console
|