nestene 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nestene/actor/delayed_scheduler.rb +6 -2
- data/lib/nestene/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 938ed2d1190db863d92c9aa35032fd61a8fd44ef
|
4
|
+
data.tar.gz: 8248966bf22453f5f52354db1b690bb060ff395f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 314b99703e79c4d56ecbca6e1fee5edd7fd2577d0c0c94160b000580e8c778224915330c8fb81d4b85982da5ba111dbffd6fe94ff7df8a3ecf8a9ded9e69b048
|
7
|
+
data.tar.gz: b9083b23f130cf11ce905101561e5ba52c0b3532fe1da4f7e9dc21fe4ea50f5eb28d994b785563c2e56b7aba073ea14002ae46a23201047dece9c92411c9860b
|
@@ -65,8 +65,12 @@ module Nestene
|
|
65
65
|
end
|
66
66
|
|
67
67
|
unless @schedule.empty?
|
68
|
-
|
69
|
-
|
68
|
+
if now >= @schedule.first[1].execute_at
|
69
|
+
async.schedule_methods
|
70
|
+
else
|
71
|
+
to_wait = @schedule.first[1].execute_at - now
|
72
|
+
@timer = after(to_wait){async.schedule_methods}
|
73
|
+
end
|
70
74
|
end
|
71
75
|
|
72
76
|
end
|
data/lib/nestene/version.rb
CHANGED