1 | sclass CoalescingDelay { |
2 | O runnable; |
3 | int delay; |
4 | |
5 | *(O *runnable) {} |
6 | |
7 | void trigger() { |
8 | long time = sysNow()+delay; |
9 | if (time > lastTrigger) lastTrigger = time; |
10 | } |
11 | } |
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: | 421 / 461 |
Referenced in: | [show references] |