Libraryless. Click here for Pure Java version (4475L/26K).
static Fiber currentFiber() { Thread t = currentThread(); ret getOrCreate(threadToFiberMap(), t, () -> { new Fiber fiber; fiber.grab(); ret fiber; }); }
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: | 122 / 195 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |