static TimedCache<Long> numComputers_cache = new TimedCache(10*60); static long numComputers_cached() { long numComputers = 0; pcall { if (eq(numComputers_cache.get(), 0L)) numComputers_cache.clean(); numComputers = numComputers_cache.get(func { getNumberOfComputers() }); } ret numComputers; }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1006017 |
| Snippet name: | numComputers_cached - get number of computers running JavaX (cached) |
| Eternal ID of this version: | #1006017/1 |
| Text MD5: | acda3d876a849a84f029c785f458c066 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-12-14 13:44:02 |
| Source code size: | 320 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 679 / 721 |
| Referenced in: | #1006303 - numComputers - synonym of getNumberOfComputers [get number of computers running JavaX] #1006654 - Standard functions list 2 (LIVE, continuation of #761) |