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

16
LINES

< > BotCompany Repo | #1010664 // talkToVMsRunningProgram

JavaX fragment (include)

1  
static L<DialogIO> talkToVMsRunningProgram(S progID) {
2  
  new L<DialogIO> l;
3  
  for (DialogIO io : talkToAllVMs()) pcall {
4  
    bool close = true;
5  
    try {
6  
      S pID = io.ask("what is the main program id?");
7  
      if (sameSnippetID(pID, progID)) {
8  
        close = false;
9  
        l.add(io);
10  
      }
11  
    } finally {
12  
      if (close) io.close();
13  
    }
14  
  }
15  
  ret l;
16  
}

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: 363 / 402
Version history: 2 change(s)
Referenced in: [show references]