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

16
LINES

< > BotCompany Repo | #1010664 // talkToVMsRunningProgram

JavaX fragment (include)

static L<DialogIO> talkToVMsRunningProgram(S progID) {
  new L<DialogIO> l;
  for (DialogIO io : talkToAllVMs()) pcall {
    bool close = true;
    try {
      S pID = io.ask("what is the main program id?");
      if (sameSnippetID(pID, progID)) {
        close = false;
        l.add(io);
      }
    } finally {
      if (close) io.close();
    }
  }
  ret l;
}

Author comment

Began life as a copy of #1010645

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: #1010664
Snippet name: talkToVMsRunningProgram
Eternal ID of this version: #1010664/3
Text MD5: 5c4b6feb0f4bc7869fac9532c30dd24c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-24 13:49:43
Source code size: 378 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 364 / 402
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1010665 - isProgramRunning - checks all VMs on this machine, but only for main programs