Libraryless. Click here for Pure Java version (9119L/50K).
static long collab_computeLong(ICollab collab, IF1<LongConsumer, Runnable> work) { new Var<Long> var; collab.addWork(work.get(result -> { var.set(result); collab.done(); })); collab.run(); ret var!; }
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1035576 | 
| Snippet name: | collab_computeLong | 
| Eternal ID of this version: | #1035576/1 | 
| Text MD5: | 668cdd024ae78d563416444c3cf7ae74 | 
| Transpilation MD5: | e3a8cee3125a5ced0df2530cd57e7a21 | 
| Author: | stefan | 
| Category: | javax / parallelization | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2022-06-18 22:52:57 | 
| Source code size: | 226 bytes / 9 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 358 / 446 | 
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1035580 - collab_computeLong2 |