Winston Chang
6bc2f18bbf
Timer functions always use ms, and better names. Closes #2725
2019-12-13 15:30:47 -06:00
trestletech
616ae99c0b
Include equality in scheduling comparisons
...
In real life, the odds that a Sys.time() call is going to hit this equality branch is pretty small as the clock is so precise. However, for testing it's nice to be able to say "this should fire in 10ms, now elapse 10ms" and then confirm that it fired. Without this, you have to pad your delays in order to see the event trigger.
2019-10-18 15:22:03 -05:00
trestletech
d6b46f8243
Bring back the good parts of a003
2019-10-18 13:58:42 -05:00
trestletech
bac35e8f1b
Revert "PR feedback. Broke tests because of dependency on session, though, so might revert."
...
This reverts commit a003c4da85 .
2019-10-18 13:50:30 -05:00
trestletech
a003c4da85
PR feedback. Broke tests because of dependency on session, though, so might revert.
2019-10-17 14:01:58 -05:00
trestletech
0ae8e4fe8a
Consolidate to two Timer classes and simplify conditionals
2019-10-16 14:49:01 -05:00
trestletech
d3667dfc77
Attempt to get the current time from the session, if available.
2019-10-15 15:32:59 -05:00
trestletech
d01f0300a5
Add mock timer class
2019-10-15 14:59:36 -05:00
trestletech
bff207008f
Best-effort task scheduling through the session
...
Currently a no-op change, as the session just passes through to the global scheduleTask implementation. But this allows us to mock the method for testing.
2019-10-15 14:24:10 -05:00
trestletech
ed739f95ff
Revert "Best-effort task scheduling through the session"
...
This reverts commit bb4de1336c .
2019-10-15 14:22:31 -05:00
trestletech
bb4de1336c
Best-effort task scheduling through the session
...
Currently a no-op change, as the session just passes through to the global scheduleTask implementation. But this allows us to mock the method for testing.
2019-10-15 14:21:44 -05:00
Joe Cheng
c556cf1e69
Fix #2021 : Memory leak with reactiveTimer and invalidateLater
2018-04-18 12:30:14 -07:00
Joe Cheng
fdb52e0243
executeElapsed gets stuck returning TRUE even when nothing was executed
...
Fixes #1278
2016-08-10 15:10:31 -07:00
Barbara Borges Ribeiro
26d6e4da2c
allows callback to be garbage collected
2016-07-06 21:29:12 +01:00
Joe Cheng
4c652389c5
Support pool package
2016-06-14 12:58:50 -07:00
Winston Chang
6923a11038
Don't add class attribute for internal-facing classes
...
The class attribute is unneded for these classes, and this improves
performance.
2014-08-28 20:21:05 -05:00
Winston Chang
7ac84b6a91
Switch from refclasses to R6
2014-08-28 15:45:44 -05:00
Yihui Xie
3530871560
strip white spaces
2014-02-11 22:59:37 -06:00
Joe Cheng
8e6b7043bd
Shut down timer callbacks before runApp returns
2012-11-06 09:36:49 -08:00
Joe Cheng
81723d55ac
Change T and F to TRUE and FALSE
...
TRUE and FALSE are keywords whereas T and F are just predefined variables that can be reassigned
2012-10-31 11:35:41 -07:00
Joe Cheng
1f5fe5b570
Use Sys.time instead of C code
2012-07-24 22:09:23 -07:00
Joe Cheng
52394d61bf
Add time infrastructure, reactiveTimer
2012-07-12 16:36:32 -07:00
Joe Cheng
13c7800c8c
Add function for getting sys time in millis
2012-07-12 01:46:02 -07:00