Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1033559 // ISleeper_v2

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (9678L/53K).

interface ISleeper_v2 {
  default Sleeping doLater(long targetTime, Runnable r) {
    ret doLater(sysTimeToTimestamp(targetTime), r);
  }
  
  Sleeping doLater(Timestamp targetTime, Runnable r);
  
  public default Sleeping doAfter(double seconds, Runnable r) {
    ret doLater(tsNow().plusSeconds(seconds), r);
  }
}

Author comment

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: 185 / 331
Version history: 6 change(s)
Referenced in: #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674)