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

11
LINES

< > BotCompany Repo | #1013152 // Test doEvery_daemon & _registeredTimers (new inspectable timers!) [OK]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (2022L/14K).

!7

p {
  FixedRateTimer timer = doEvery_daemon(10000, 1000, r { print("yo"); });
  printStruct(timer);
  assertTrue(_registeredTimers().contains(timer));
  assertEquals(10000L, first(timer.entries).period);
  assertTrue(first(timer.entries).firstTime > 0);
  print("OK");
  sleep();
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1013152
Snippet name: Test doEvery_daemon & _registeredTimers (new inspectable timers!) [OK]
Eternal ID of this version: #1013152/12
Text MD5: f3e6f9c385606ab97f9b7fa5ddd61e60
Transpilation MD5: 9a897ebf34ca73fb343b460a5d7d90a7
Author: stefan
Category: javax / timers
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-26 20:08:37
Source code size: 295 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 425 / 1067
Version history: 11 change(s)
Referenced in: [show references]