static new ThreadLocal<Bool> ai_invalidateWeb_postAntiTriple; // off by default sbool ai_invalidateWeb_removeFromMemory = true; static S ai_invalidateWeb(GlobalID webID) { ret ai_invalidateWeb(ai_getWeb(webID)); } static S ai_invalidateWeb(S webID) { ret ai_invalidateWeb(ai_getWebFromTerm(webID)); } static S ai_invalidateWeb(Web web) { if (web == null) null; S id = post("Web " + web.globalID, "is", "invalid"); if (isTrue(ai_invalidateWeb_postAntiTriple!)) { T3<S> t = webToTriple(web); if (t != null) post(ai_tripleToInvalid(t)); } if (ai_invalidateWeb_removeFromMemory) ai_removeWeb(web); ret id; } static void ai_invalidateWeb(WebNode node) { ai_invalidateWeb(webNodeToWeb(node)); }
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: | #1011413 |
Snippet name: | ai_invalidateWeb |
Eternal ID of this version: | #1011413/14 |
Text MD5: | 919f45061cebd0f8d903dcac1260e95b |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-02-27 02:06:41 |
Source code size: | 767 bytes / 30 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 558 / 558 |
Version history: | 13 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1011417 - ai_invalidateWebTransiently #1011660 - ai_invalidateTriple #1011661 - ai_invalidateWebs #1012510 - ai_wrongWeb - stronger than ai_invalidateWeb (also posts "[invalid] ..." triple) |