Libraryless. Click here for Pure Java version (10119L/56K).
static ReliableSingleThread rstWithPreDelay_v2(int delay, Runnable r) { var rst = ReliableSingleThread(r); rst.preSleep = -> sleep(delay); ret rst; } static ReliableSingleThread rstWithPreDelay_v2(double seconds, Runnable r) { ret rstWithPreDelay_v2(toMS_int(seconds), r); }
Began life as a copy of #1029640
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1036320 |
| Snippet name: | rstWithPreDelay_v2 - should trigger less |
| Eternal ID of this version: | #1036320/1 |
| Text MD5: | d70db62bbc819e41806751e89c394301 |
| Transpilation MD5: | 2c2150fcc466b49dcf78cc2aa8583255 |
| Author: | stefan |
| Category: | |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-11-15 23:01:07 |
| Source code size: | 291 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 368 / 470 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |