Libraryless. Click here for Pure Java version (10119L/56K).
1 | static ReliableSingleThread rstWithPreDelay_v2(int delay, Runnable r) { |
2 | var rst = ReliableSingleThread(r); |
3 | rst.preSleep = -> sleep(delay); |
4 | ret rst; |
5 | } |
6 | |
7 | static ReliableSingleThread rstWithPreDelay_v2(double seconds, Runnable r) { |
8 | ret rstWithPreDelay_v2(toMS_int(seconds), r); |
9 | } |
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: | 122 / 170 |
Referenced in: | [show references] |