static long waitForBotStartUp_timeoutSeconds = 60; // returns address or fails static S waitForBotStartUp(S botName) { for (int i = 0; i < waitForBotStartUp_timeoutSeconds; i++) { sleepSeconds(i == 0 ? 0 : 1); S addr = getBotAddress(botName); if (addr != null) return addr; } throw fail("Bot not found: " + quote(botName)); }
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: | #1001366 |
| Snippet name: | waitForBotStartUp |
| Eternal ID of this version: | #1001366/1 |
| Text MD5: | 2f8831810180fe543f3e9ce5760af5d0 |
| Author: | stefan |
| Category: | |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-11-13 17:09:30 |
| Source code size: | 361 bytes / 12 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 945 / 2616 |
| Referenced in: | [show references] |