io-event 1.6.3 → 1.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/io/event/selector/select.rb +2 -5
- data/lib/io/event/timers.rb +4 -3
- data/lib/io/event/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53b1f32affa83ac713eaaf8fba4b9a1c9d2f25421908759dde9b5adec11c498f
|
4
|
+
data.tar.gz: 6504222eab182d55f2b56ef91c4de9f301f509a69fff17f286c03f0ef0315786
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac5f863272fb2a532d1adbe16e2960f78dd6f4ce52891e391f301d40bb28ad74e2775348d55610f1f308f7a69b0b362e93f794b44fe94b4ec6e91331a2e851d5
|
7
|
+
data.tar.gz: 042a1a3ba4ec1a3e438d823b9d9348eeebc86be2464030744a9a01ff50654aeeb229fb79729083d3f1bdb2feb968dcee8ec320d33de7083196eb1afd887c5ef6
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -420,11 +420,8 @@ module IO::Event
|
|
420
420
|
duration = 0 unless @ready.empty?
|
421
421
|
error = nil
|
422
422
|
|
423
|
-
if duration
|
424
|
-
|
425
|
-
if duration > 0
|
426
|
-
start_time = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
427
|
-
end
|
423
|
+
if duration&.>(0)
|
424
|
+
start_time = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
428
425
|
else
|
429
426
|
@idle_duration = 0.0
|
430
427
|
end
|
data/lib/io/event/timers.rb
CHANGED
@@ -50,18 +50,19 @@ class IO
|
|
50
50
|
end
|
51
51
|
|
52
52
|
# Schedule a block to be called at a specific time in the future.
|
53
|
-
# @parameter time [
|
53
|
+
# @parameter time [Float] The time at which the block should be called, relative to {#now}.
|
54
54
|
def schedule(time, block)
|
55
55
|
handle = Handle.new(time, block)
|
56
|
+
|
56
57
|
@scheduled << handle
|
57
58
|
|
58
59
|
return handle
|
59
60
|
end
|
60
61
|
|
61
62
|
# Schedule a block to be called after a specific time offset, relative to the current time as returned by {#now}.
|
62
|
-
# @parameter offset [
|
63
|
+
# @parameter offset [#to_f] The time offset from the current time at which the block should be called.
|
63
64
|
def after(offset, &block)
|
64
|
-
schedule(self.now + offset, block)
|
65
|
+
schedule(self.now + offset.to_f, block)
|
65
66
|
end
|
66
67
|
|
67
68
|
def wait_interval(now = self.now)
|
data/lib/io/event/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: io-event
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -44,7 +44,7 @@ cert_chain:
|
|
44
44
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
45
45
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
46
46
|
-----END CERTIFICATE-----
|
47
|
-
date: 2024-06-
|
47
|
+
date: 2024-06-23 00:00:00.000000000 Z
|
48
48
|
dependencies: []
|
49
49
|
description:
|
50
50
|
email:
|
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: '0'
|
103
103
|
requirements: []
|
104
|
-
rubygems_version: 3.5.
|
104
|
+
rubygems_version: 3.5.11
|
105
105
|
signing_key:
|
106
106
|
specification_version: 4
|
107
107
|
summary: An event loop.
|
metadata.gz.sig
CHANGED
Binary file
|