Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1019333 // Test pcallFParallel (OK, but where is the exception print?)

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (7226L/52K).

!7

p-exp {
  time {
    L<S> out = pcallFParallel(
      func -> S { sleepSeconds(5); ret "hello"; },
      func -> S { sleepSeconds(5); ret "world"; }, 
      func -> S { print("failing"); throw fail("bla"); });
    printStruct(out);
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vmkkswzgqtcz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019333
Snippet name: Test pcallFParallel (OK, but where is the exception print?)
Eternal ID of this version: #1019333/5
Text MD5: f27a2dc8f782549aa77ae720a3175524
Transpilation MD5: de5a9821bf82cd339c4e1550bc42db60
Author: stefan
Category: javax
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-01 12:42:06
Source code size: 251 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 252 / 740
Version history: 4 change(s)
Referenced in: [show references]