Closed Lanius-collaris closed 8 months ago
Sorry for not spotting this. It is not possible to implement Thread.sleep.
But in every case we have seen there are simple alternatives. See the javajs.async.SwingJSUtil$StateMachine class and many examples. There is a discussion of how to use equivalents to java.lang.Thread in doc/Differences.txt as well.
These methods have been used many times in multiple projects.
I saw a example on mdn.
babel try it out output: