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

24
LINES

< > BotCompany Repo | #1017608 // Test Q2 [Dyn Module]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Libraryless. Click here for Pure Java version (14666L/100K).

1  
!7
2  
3  
sclass TestQ2 > DynSingleFunctionWithPrintLog {
4  
  transient new L<Q2> queues;
5  
  int n = 10;
6  
  
7  
  void start {
8  
    for i to n:
9  
      queues.add(new Q2);
10  
  }
11  
  
12  
  void doIt() {
13  
    for i to 2: {
14  
      final int _i = i;
15  
      for (final Q2 q : queues)
16  
        q.add(r {
17  
          sleep(random(4000));
18  
          print("I am " + _hashCode(q) + "/" + _i);
19  
          sleepSeconds(2);
20  
        });
21  
      sleep(500);
22  
    }
23  
  }
24  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1017608
Snippet name: Test Q2 [Dyn Module]
Eternal ID of this version: #1017608/7
Text MD5: a8709cff6dd92ebc3fe4a29ccb1c1303
Transpilation MD5: 9d582b3155d1fafbe5037fb9af793c1e
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-29 18:36:15
Source code size: 445 bytes / 24 lines
Pitched / IR pitched: No / No
Views / Downloads: 361 / 484
Version history: 6 change(s)
Referenced in: [show references]