Transpiled version (7501L) is out of date.
1 | static ReliableSingleThread rstWithPreDelay(int delay, Runnable r) {
|
2 | ret rstWithDelay(delay, r); |
3 | } |
4 | |
5 | |
6 | |
7 | static ReliableSingleThread rstWithPreDelay(double seconds, Runnable r) {
|
8 | ret rstWithDelay(seconds, r); |
9 | } |
10 | |
11 | static RSTOverQ rstWithPreDelay(double seconds, Q q, Runnable r) {
|
12 | ret RSTOverQ(q, new Runnable {
|
13 | run {
|
14 | print ifdef rstWithPreDelay_debug("Sleeping " + seconds);
|
15 | sleepSeconds(seconds); |
16 | print ifdef rstWithPreDelay_debug("Calling " + r);
|
17 | callF(r); |
18 | print ifdef rstWithPreDelay_debug("Called " + r);
|
19 | } |
20 | |
21 | toString { ret "Sleep " + seconds + "s, then: " + r; }
|
22 | }); |
23 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1029640 |
| Snippet name: | rstWithPreDelay - synonym of rstWithDelay |
| Eternal ID of this version: | #1029640/5 |
| Text MD5: | 87859fad3da366567b773ee14291a24c |
| Author: | stefan |
| Category: | |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-03-03 16:45:55 |
| Source code size: | 644 bytes / 23 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 534 / 665 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |