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

5
LINES

< > BotCompany Repo | #1032615 // rstWithEnter - make ReliableSingleThread

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

Libraryless. Click here for Pure Java version (5049L/30K).

1  
static ReliableSingleThread rstWithEnter(IF0<AutoCloseable> enter, Runnable r) {
2  
  ReliableSingleThread rst = new(r);
3  
  rst.enter = if0ToF0(enter);
4  
  ret rst;
5  
}

Author comment

Began life as a copy of #1018671

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032615
Snippet name: rstWithEnter - make ReliableSingleThread
Eternal ID of this version: #1032615/4
Text MD5: 3fc97e8a265557d7b23cee65a290a842
Transpilation MD5: 342b3130a36953374e2fc7391e2d2b98
Author: stefan
Category: javax / threading
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-25 00:38:33
Source code size: 164 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 127 / 184
Version history: 3 change(s)
Referenced in: [show references]