Libraryless. Click here for Pure Java version (2122L/14K).
svoid withCancelPoint(VF1<CancelPoint> r) { temp CancelPoint cp = newCancelPoint(); try { callF(r, cp); } catch e { e = innerException(e); if (!(e instanceof CancelToCancelPoint && e/CancelToCancelPoint.cp == cp)) rethrow(e); } } svoid withCancelPoint(IVF1<CancelPoint> r) { temp CancelPoint cp = newCancelPoint(); try { r.get(cp); } catch e { e = innerException(e); if (!(e instanceof CancelToCancelPoint && e/CancelToCancelPoint.cp == cp)) rethrow(e); } }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1018342 |
Snippet name: | withCancelPoint |
Eternal ID of this version: | #1018342/3 |
Text MD5: | d8fe10b358ad70752bf5f2a7234fe9d9 |
Transpilation MD5: | 06026230231fdbf27c2efbaf530bb876 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-15 01:42:01 |
Source code size: | 530 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 375 / 505 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1028835 - withDeepReturn - like withCancelPoint, but allowing a return value |