Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1014747 // mechListOrCreate_raw

JavaX fragment (include)

please include function mechList_raw.

static S mechListOrCreate_raw(S name) ctex {
  lock mechList_raw_lock;
  
  // get from cache
  S src = mechList_raw_cache.get(name);
  if (src != null) ret src;
  
  // load & put in cache
  src = mechListOrCreate_raw_fresh(name);
  mechList_raw_cache.put(name, unnull(src));
  ret src;
}

Author comment

Began life as a copy of #1014209

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: #1014747
Snippet name: mechListOrCreate_raw
Eternal ID of this version: #1014747/1
Text MD5: 448c67ee9a256fbcd1056230e2f1c754
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-01 17:04:08
Source code size: 341 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 366 / 397
Referenced in: [show references]