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

6
LINES

< > BotCompany Repo | #1016569 // cancelTimerOrInterruptThread

JavaX fragment (include)

static void cancelTimerOrInterruptThread(O timer) {
  if (timer instanceof Thread && !timer instanceof AutoCloseable) // AutoCloseable takes precedence
    interruptThread((Thread) timer);
  else
    cancelTimer(timer);
}

Author comment

Began life as a copy of #1016552

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016569
Snippet name: cancelTimerOrInterruptThread
Eternal ID of this version: #1016569/3
Text MD5: b84f79fc27c51338f333984ee861fd7d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-28 14:42:31
Source code size: 226 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 293 / 335
Version history: 2 change(s)
Referenced in: [show references]