io-event 1.6.3 → 1.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/io/event/selector/select.rb +0 -1
- data/lib/io/event/timers.rb +4 -3
- data/lib/io/event/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- 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: 7e8079059cd981f3843b5887e4eb8b3059330ee939febdf21b2541011ec4a864
|
4
|
+
data.tar.gz: fd6c2d19dcd0a63b93a0f395faec3ac11933072f08a2a14de2546a6a402a2b09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 887a130e38d3f4e2c514099aaeb8f34925e62b8ec4329d5c93df66db6d4bf277a5b3c3632db5e751b4974ada1b7f5ed99ed2d9cb5de56e26a0aa51bdca0f2e68
|
7
|
+
data.tar.gz: 1daa6130d762d3aa8c3df4771327e955813d7bcb18281cc155026dddbbceee5b4a08b52eac31134408e77768a9d7f4a4392b5d2fe8805bfb9353d4b1375f483e
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
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.4
|
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-13 00:00:00.000000000 Z
|
48
48
|
dependencies: []
|
49
49
|
description:
|
50
50
|
email:
|
metadata.gz.sig
CHANGED
Binary file
|