Libraryless. Click here for Pure Java version (9678L/53K).
1 | interface ISleeper_v2 {
|
2 | default Sleeping doLater(long targetTime, Runnable r) {
|
3 | ret doLater(sysTimeToTimestamp(targetTime), r); |
4 | } |
5 | |
6 | Sleeping doLater(Timestamp targetTime, Runnable r); |
7 | |
8 | public default Sleeping doAfter(double seconds, Runnable r) {
|
9 | ret doLater(tsNow().plusSeconds(seconds), r); |
10 | } |
11 | } |
Began life as a copy of #1025190
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1033559 |
| Snippet name: | ISleeper_v2 |
| Eternal ID of this version: | #1033559/7 |
| Text MD5: | e1e08ea1935e286f084fa8a67b5fc3de |
| Transpilation MD5: | 4f311f97931649138dc60f95cd86e866 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-11-28 21:19:15 |
| Source code size: | 327 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 413 / 612 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |