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

16
LINES

< > BotCompany Repo | #1001633 // waitUntilInjectionsDone

JavaX fragment (include)

1  
static void waitUntilInjectionsDone(L<Injection> injections) {
2  
  print("Waiting for " + l(injections) + " injection(s) to end.");
3  
  
4  
  injections = cloneList(injections);
5  
  
6  
  while (true) {
7  
    for (ListIterator<Injection> it = injections.listIterator(); it.hasNext(); ) {
8  
      Injection i = it.next();
9  
      if (match3("yes", sendToBotQuietly(i.vmPort, "is injection's * main done", i.injectionID)))
10  
        it.remove();
11  
    }
12  
    if (injections.isEmpty())
13  
      ret;
14  
    sleep(500);
15  
  }
16  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1001633
Snippet name: waitUntilInjectionsDone
Eternal ID of this version: #1001633/1
Text MD5: 93a5f59639e49fd14987d88cfbc26a79
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-11-14 18:19:08
Source code size: 507 bytes / 16 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 561 / 809
Referenced in: [show references]