Libraryless. Click here for Pure Java version (2537L/16K).
// accept purpose argument so we are a drop-in for tempVerboseLock static AutoCloseable tempLock(S purpose default "", Lock lock) { if (lock == null) null; lock(lock); ret autoCloseable { unlock(lock); }; }
Began life as a copy of #1016243
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1019003 |
Snippet name: | tempLock |
Eternal ID of this version: | #1019003/3 |
Text MD5: | 3251ba25985a09a57d3337d9d95c7b79 |
Transpilation MD5: | dbb3fb368ae9a5556b7ca82681d55095 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-08-16 20:08:35 |
Source code size: | 217 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 366 / 484 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |