Libraryless. Click here for Pure Java version (10863L/59K).
sclass Test_MultiSleeper { new MultiSleeper ms; void allTests { assertNull(ms.nextWakeUpTime()); singleTask(); singleTask(); } void singleTask { new Flag flag; ms.doLater(new Timestamp().plusSeconds(0.5), flag); assertFalseVerbose("Not yet", flag.isUp()); sleepSeconds(1); assertTrueVerbose(flag.isUp()); } } svoid test_MultiSleeper() { new Test_MultiSleeper().allTests(); }
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1036584 |
Snippet name: | test_MultiSleeper |
Eternal ID of this version: | #1036584/2 |
Text MD5: | 55e75d5568bce2ee00ec49d04de34c3b |
Transpilation MD5: | 1374737fa25827476e42336eb0815b72 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2023-03-22 14:59:28 |
Source code size: | 447 bytes / 22 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 129 / 195 |
Version history: | 1 change(s) |
Referenced in: | #761 - New #629 - Standard functions list (LIVE) - continued on #1006654 |