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

16
LINES

< > BotCompany Repo | #1001633 - waitUntilInjectionsDone

JavaX fragment (include)

static void waitUntilInjectionsDone(L<Injection> injections) {
  print("Waiting for " + l(injections) + " injection(s) to end.");
  
  injections = cloneList(injections);
  
  while (true) {
    for (ListIterator<Injection> it = injections.listIterator(); it.hasNext(); ) {
      Injection i = it.next();
      if (match3("yes", sendToBotQuietly(i.vmPort, "is injection's * main done", i.injectionID)))
        it.remove();
    }
    if (injections.isEmpty())
      ret;
    sleep(500);
  }
}

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: 460 / 672
Referenced in: [show references]