static O evalInNewThread(fO f) { final new Flag flag; final new Var var; final new Var<Throwable> exception; thread { try { var.set(callF(f)); } catch e { exception.set(e); } flag.raise(); } flag.waitUntilUp(); if (exception.has()) throw rethrow(exception!); ret var!; }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1007614 |
Snippet name: | evalInNewThread |
Eternal ID of this version: | #1007614/2 |
Text MD5: | 670eebbbb79ce1f4e103be2047b594ca |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-03-28 11:56:46 |
Source code size: | 329 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 483 / 572 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |