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

9
LINES

< > BotCompany Repo | #1018288 // tempSetTL - synonym of tempSetThreadLocal

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (78L/1K).

1  
static <A> AutoCloseable tempSetTL(ThreadLocal<A> tl, A a) {
2  
  ret tempSetThreadLocal(tl, a);
3  
}
4  
5  
ifclass BetterThreadLocal
6  
static <A> AutoCloseable tempSetTL(BetterThreadLocal<A> tl, A a) {
7  
  ret tempSetThreadLocalIfNecessary(tl, a);
8  
}
9  
endif

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1018288
Snippet name: tempSetTL - synonym of tempSetThreadLocal
Eternal ID of this version: #1018288/6
Text MD5: ce1bee46b26ef050f64417e3c240bf54
Transpilation MD5: 7ea5d993068d9e37011bf525d6f5f7c6
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-11-02 01:55:22
Source code size: 249 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 502 / 701
Version history: 5 change(s)
Referenced in: [show references]