1 | static ReliableSingleThread rstWithDelay(final int delay, final Runnable r) { |
2 | ret ReliableSingleThread(r { |
3 | sleep(delay); |
4 | callF(r); |
5 | }); |
6 | } |
7 | |
8 | static ReliableSingleThread rstWithDelay(double seconds, Runnable r) { |
9 | ret rstWithDelay(toMS_int(seconds), r); |
10 | } |
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: | #1016128 |
Snippet name: | rstWithDelay - ReliableSingleThread with a pre-delay - TODO: reduce double-triggering |
Eternal ID of this version: | #1016128/4 |
Text MD5: | 2b7360d5b28d8536fd1e29e1b2e73706 |
Author: | stefan |
Category: | javax / threading |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-10-28 10:04:36 |
Source code size: | 273 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 528 / 563 |
Version history: | 3 change(s) |
Referenced in: | [show references] |