1 | // return true when interrupted |
2 | static bool lightSleep(long ms) {
|
3 | try {
|
4 | Thread.sleep(ms); |
5 | false; |
6 | } catch (InterruptedException e) {
|
7 | true; |
8 | } |
9 | } |
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: | #1006828 |
| Snippet name: | lightSleep - sleeps until interrupted or some ms have passed |
| Eternal ID of this version: | #1006828/3 |
| Text MD5: | 2ae3efb639f80b67df08758c7c5ef7ee |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-02-05 06:14:37 |
| Source code size: | 167 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 664 / 698 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |