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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a043ccb6378ff70b23eff7218723e910af5828508241e4ca87bb59669eee5990
4
- data.tar.gz: c1891f280b416fd092caa8e54473697856718d55a820dc784ad3026ba301c4b7
3
+ metadata.gz: 77c63d6ea5723e686a2b72bd7bac1055aa293df4f4583915124a657cd39e6a74
4
+ data.tar.gz: 3f58014dc1430f1a03bc16a69f19020a8fc3aefb4280e9026fea74fe89118ee1
5
5
  SHA512:
6
- metadata.gz: 61abcad6fc07e331c6eaba134865e329964b7c8c87f23338e4f8ce39dd250fa2c9719e83eb74a55c284ada13873f5ad996ba68162c131be2a933b67a124d17ed
7
- data.tar.gz: b5039970211fec3361ee6bf8044be988771a968a7f43ca8f20d3a4eea95234fc45fbc78f395b8ff2a9cb77407865915102ca38936b57c875fa1b07848050cae3
6
+ metadata.gz: ca3d285761dd73820c81a56e3bc55a11780e915652d07f611be3723934345f0204d0949b0b5f3a86480b231cdbf37515404eb38152d1771b564932798cb96e70
7
+ data.tar.gz: fa3cc87e0064c5a63c0f3b3683270c0e1ad9a2db283c131b139bbfd3c337399d8646824377c512b8e2245bc70f6ba213afda6e84391c4caaa4b8764c6587955d
@@ -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.resume
107
+ fiber = task.fiber
108
108
 
109
- return task.fiber
109
+ task.run
110
+
111
+ return fiber
110
112
  end
111
113
  end
112
114
  end
@@ -21,5 +21,5 @@
21
21
  # THE SOFTWARE.
22
22
 
23
23
  module Async
24
- VERSION = "1.28.2"
24
+ VERSION = "1.28.3"
25
25
  end
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.2
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: 2020-12-25 00:00:00.000000000 Z
11
+ date: 2021-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: console