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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b15a84835cd91c8d303fb774bcfab585180115153fab3006f0e2e179d9d06a91
4
- data.tar.gz: 89d3f2c2c676234ce38c494d582502a78b7ff4f2a19a9eaa926dcdf95c45d770
3
+ metadata.gz: d9e9cbb377148d6f0ff52896452064a5868202f389ac19270dac9540ac68394d
4
+ data.tar.gz: c205d75250c9ad2b1ad9187d21e3a3d11a102d7ab677156b9b591120dec09268
5
5
  SHA512:
6
- metadata.gz: 42716527198f1cc5228b6c714cd43dd7ec8174aeab1a899db158e6e44c13067e8cc2c705048a0c00384334b19c5b9fe56e0c220cc676a1a190f8e0c6c9034a8b
7
- data.tar.gz: '01831255a14a052f6a2fc04973d6a64002edbb31885ea8683ef0c84f104a4a74abd3a06ccc75f28115150bd6892456a9733af16e66280685ebe63dfedae83b26'
6
+ metadata.gz: 61572f82e2720942866429556e299da485fbd9d74ed8ff19f6c3fa0ea0e593a214319e6bdf276a408f0d8e098efc8b0d351653ba8d06f5dd7a59c59b1528ee01
7
+ data.tar.gz: 2de4971bf4275376cee035f6b677bbac48388ff379f0ae492652526c60e10202a1b5fbf6f28574d81beb6a12725a7eda959e5577ceb7f8990c502d8cc179bf82
@@ -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) do |io, address|
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
@@ -20,6 +20,6 @@
20
20
 
21
21
  module Async
22
22
  module IO
23
- VERSION = "1.23.0"
23
+ VERSION = "1.23.1"
24
24
  end
25
25
  end
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.0
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-05 00:00:00.000000000 Z
11
+ date: 2019-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async