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

8
LINES

< > BotCompany Repo | #1032582 // currentFiber

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

Libraryless. Click here for Pure Java version (4475L/26K).

1  
static Fiber currentFiber() {
2  
  Thread t = currentThread();
3  
  ret getOrCreate(threadToFiberMap(), t, () -> {
4  
    new Fiber fiber;
5  
    fiber.grab();
6  
    ret fiber;
7  
  });
8  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1032582
Snippet name: currentFiber
Eternal ID of this version: #1032582/3
Text MD5: 0a30a6388420a2241e7e965495dc8a2b
Transpilation MD5: 9e8f56c163a73099dcb161834da2a688
Author: stefan
Category: javax / fibers
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-23 05:18:37
Source code size: 177 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 123 / 196
Version history: 2 change(s)
Referenced in: [show references]