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

10
LINES

< > BotCompany Repo | #1019005 // rstWithPostDelay - ReliableSingleThread with a delay after execution

JavaX fragment (include)

static ReliableSingleThread rstWithPostDelay(final int delay, final Runnable r) {
  ret ReliableSingleThread(r {
    pcallF(r);
    sleep(delay);
  });
}

static ReliableSingleThread rstWithPostDelay(double seconds, Runnable r) {
  ret rstWithPostDelay(toMS_int(seconds), r);
}

Author comment

Began life as a copy of #1016128

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1019005
Snippet name: rstWithPostDelay - ReliableSingleThread with a delay after execution
Eternal ID of this version: #1019005/1
Text MD5: 41e1749187eb327208a01991a3c46f81
Author: stefan
Category: javax / threading
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-20 14:21:30
Source code size: 286 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 381 / 421
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1019082 - dm_rstWithPostDelay - ReliableSingleThread with a delay after execution