sclass CoalescingDelay { O runnable; int delay; *(O *runnable) {} void trigger() { long time = sysNow()+delay; if (time > lastTrigger) lastTrigger = time; } }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1015143 |
| Snippet name: | DelayedFlush / CoalescingDelay [dev.] |
| Eternal ID of this version: | #1015143/1 |
| Text MD5: | 54f6367f0431e52add82070cdd0530ba |
| Author: | stefan |
| Category: | javax / timers |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-05-09 00:18:16 |
| Source code size: | 192 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 616 / 668 |
| Referenced in: | [show references] |