1 | static TimedCache<Long> numComputers_cache = new TimedCache(10*60); |
2 | |
3 | static long numComputers_cached() { |
4 | long numComputers = 0; |
5 | pcall { |
6 | if (eq(numComputers_cache.get(), 0L)) numComputers_cache.clean(); |
7 | numComputers = numComputers_cache.get(func { getNumberOfComputers() }); |
8 | } |
9 | ret numComputers; |
10 | } |
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: | 468 / 500 |
Referenced in: | [show references] |