1 | static Android3 bot_ensureNotRunning(S greeting) { |
2 | ensureBotNotRunning(greeting); |
3 | ret bot(greeting); |
4 | } |
5 | |
6 | static Android3 bot_ensureNotRunning(Android3 a) { |
7 | ensureBotNotRunning(a.greeting); |
8 | ret bot(a); |
9 | } |
10 | |
11 | static Android3 bot_ensureNotRunning(S greeting, O responder) { |
12 | ensureBotNotRunning(greeting); |
13 | ret bot(greeting, responder); |
14 | } |
15 | |
16 | static Android3 bot_ensureNotRunning() { |
17 | ret bot_ensureNotRunning(defaultBotName()); |
18 | } |
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: | 375 / 426 |
Referenced in: | [show references] |