// returns (timer owner, timer, estimated firing time) or null static T3<O, O, Long> nextFiringTimerInVM_withOwner() { long time = now(); Lowest<Pair<O>> best = new Lowest; for (Class c : allMainClassesAndJavaX()) for (O timer : unnull(_registeredTimersOf(c))) pcall { long t = timer_nextFireTime(timer, time); if (t != 0) best.put(pair((O) c, timer), t); } ret best.has() ? t3(best->a, best->b, toLong(best.bestScore())) : null; }
Began life as a copy of #1017641
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017643 |
Snippet name: | nextFiringTimerInVM_withOwner |
Eternal ID of this version: | #1017643/3 |
Text MD5: | 41825bd1053d0dc16904e625f02054cf |
Author: | stefan |
Category: | javax / timers |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-31 13:55:04 |
Source code size: | 478 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 279 / 300 |
Version history: | 2 change(s) |
Referenced in: | [show references] |