Libraryless. Click here for Pure Java version (11671L/76K).
1 | // firstDelay = delay |
2 | static FixedRateTimer dm_doEvery(long delay, Runnable r) { |
3 | ret dm_ownTimer(doEvery(delay, delay, dm_rEnter(r))); |
4 | } |
5 | |
6 | static FixedRateTimer dm_doEvery(long delay, long firstDelay, Runnable r) { |
7 | ret dm_ownTimer(doEvery(delay, firstDelay, dm_rEnter(r))); |
8 | } |
9 | |
10 | // reversed argument order for fun |
11 | static FixedRateTimer dm_doEvery(double initialSeconds, double delaySeconds, Runnable r) { |
12 | ret dm_ownTimer(doEvery(initialSeconds, delaySeconds, dm_rEnter(r))); |
13 | } |
14 | |
15 | static FixedRateTimer dm_doEvery(double delaySeconds, Runnable r) { |
16 | ret dm_ownTimer(doEvery(delaySeconds, dm_rEnter(r))); |
17 | } |
Began life as a copy of #1004683
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027275 |
Snippet name: | dm_doEvery - install a java.util.Timer |
Eternal ID of this version: | #1027275/4 |
Text MD5: | 3cddd67d8fef77c57845bf19a5d5e80d |
Transpilation MD5: | 8b0e585adcffbf59cc4c36d706b723ce |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-04-17 16:23:00 |
Source code size: | 622 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 322 / 432 |
Version history: | 3 change(s) |
Referenced in: | [show references] |