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).

static <A> AutoCloseable tempSetTL(ThreadLocal<A> tl, A a) {
  ret tempSetThreadLocal(tl, a);
}

ifclass BetterThreadLocal
static <A> AutoCloseable tempSetTL(BetterThreadLocal<A> tl, A a) {
  ret tempSetThreadLocalIfNecessary(tl, a);
}
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: 317 / 480
Version history: 5 change(s)
Referenced in: [show references]