async-io 1.23.0 → 1.23.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/async/io/socket.rb +5 -3
- data/lib/async/io/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: d9e9cbb377148d6f0ff52896452064a5868202f389ac19270dac9540ac68394d
|
4
|
+
data.tar.gz: c205d75250c9ad2b1ad9187d21e3a3d11a102d7ab677156b9b591120dec09268
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61572f82e2720942866429556e299da485fbd9d74ed8ff19f6c3fa0ea0e593a214319e6bdf276a408f0d8e098efc8b0d351653ba8d06f5dd7a59c59b1528ee01
|
7
|
+
data.tar.gz: 2de4971bf4275376cee035f6b677bbac48388ff379f0ae492652526c60e10202a1b5fbf6f28574d81beb6a12725a7eda959e5577ceb7f8990c502d8cc179bf82
|
data/lib/async/io/socket.rb
CHANGED
@@ -95,10 +95,12 @@ module Async
|
|
95
95
|
def accept_each(timeout: nil, task: Task.current)
|
96
96
|
task.annotate "accepting connections #{self.local_address.inspect}"
|
97
97
|
|
98
|
+
callback = lambda do |io, address|
|
99
|
+
yield io, address, task: task
|
100
|
+
end
|
101
|
+
|
98
102
|
while true
|
99
|
-
self.accept(timeout: timeout, task: task
|
100
|
-
yield io, address, task: task
|
101
|
-
end
|
103
|
+
self.accept(timeout: timeout, task: task, &callback)
|
102
104
|
end
|
103
105
|
end
|
104
106
|
end
|
data/lib/async/io/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-io
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.23.
|
4
|
+
version: 1.23.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|