Libraryless. Click here for Pure Java version (1792L/12K).
1 | static <A> A grabValueAndCancel(VF1<VF1<A>> r) { |
2 | new Var<A> var; |
3 | withCancelPoint(voidfunc(CancelPoint cp) { |
4 | callF(r, voidfunc(A a) { var.set(a); cancelTo(cp) }); |
5 | }); |
6 | ret var!; |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024304 |
Snippet name: | grabValueAndCancel |
Eternal ID of this version: | #1024304/2 |
Text MD5: | 45d2c5572624790a32e4644e20488888 |
Transpilation MD5: | d01c93bad5f1b5c64e2f4b6bb3b49842 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-30 23:07:01 |
Source code size: | 195 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 273 / 335 |
Version history: | 1 change(s) |
Referenced in: | [show references] |