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

4
LINES

< > BotCompany Repo | #1027048 - waitUntil

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

Libraryless. Click here for Pure Java version (2182L/14K).

svoid waitUntil(int interval, IF0<Bool> condition) {
  if (condition == null) ret;
  while (!condition.get()) sleep(interval);
}

download  show line numbers  debug dex   

Travelled to 2 computer(s): mqqgnosmbjvj, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027048
Snippet name: waitUntil
Eternal ID of this version: #1027048/1
Text MD5: 10f97ef765c367f0de13b6dd090e32c3
Transpilation MD5: 44841550d4fcb902df6974c43cc7e101
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-13 18:57:42
Source code size: 131 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 4 / 13
Referenced in: [show references]

Formerly at http://tinybrain.de/1027048 & http://1027048.tinybrain.de