1 | please include function mechList_raw. |
2 | |
3 | static S mechList_opt_raw(S name) ctex { |
4 | lock mechList_raw_lock; |
5 | |
6 | if (mechList_goToCreator() || eq(mechMode().readMode, 'creator)) |
7 | ret (S) call(creator(), 'mechList_opt_raw, name); |
8 | |
9 | // get from cache |
10 | S src = mechList_raw_cache.get(name); |
11 | if (src != null) ret src; |
12 | |
13 | // load & put in cache |
14 | src = mechList_opt_raw_fresh(name); |
15 | mechList_raw_cache.put(name, unnull(src)); |
16 | ret src; |
17 | } |
18 | |
19 | please include function mechList_clearCache. |
20 | |
21 | svoid _onLoad_mechList_opt_raw { |
22 | _registerAutoCloseable(vmBus_onMessage('mechList_clearCache, voidfunc(S listName) { |
23 | if (!isTrue(mechList_clearCache_inFunction!)) |
24 | mechList_clearCache_noSend(listName); |
25 | })); |
26 | } |
Began life as a copy of #1014020
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: | #1014209 |
Snippet name: | mechList_opt_raw |
Eternal ID of this version: | #1014209/10 |
Text MD5: | d1016ee6fed53c2965597de5f510844e |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-15 15:01:30 |
Source code size: | 738 bytes / 26 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 438 / 470 |
Version history: | 9 change(s) |
Referenced in: | [show references] |