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

18
LINES

< > BotCompany Repo | #1015702 // bot_ensureNotRunning - enforce single-instance bot [modulo race condition]

JavaX fragment (include)

static Android3 bot_ensureNotRunning(S greeting) {
  ensureBotNotRunning(greeting);
  ret bot(greeting);
}

static Android3 bot_ensureNotRunning(Android3 a) {
  ensureBotNotRunning(a.greeting);
  ret bot(a);
}

static Android3 bot_ensureNotRunning(S greeting, O responder) {
  ensureBotNotRunning(greeting);
  ret bot(greeting, responder);
}

static Android3 bot_ensureNotRunning() {
  ret bot_ensureNotRunning(defaultBotName());
}

Author comment

Began life as a copy of #1007059

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: #1015702
Snippet name: bot_ensureNotRunning - enforce single-instance bot [modulo race condition]
Eternal ID of this version: #1015702/1
Text MD5: ae5896c305359dcbc0f631cb766c4234
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-23 13:54:01
Source code size: 448 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 374 / 425
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)