Simple sleep/wait example with ECMA script

Here are two more examples on how to wait and block in a script. One example with java.lang.Thread.sleep() and one example with a timer and a timer and a java.util.concurrent.CompletableFuture.

Yeah, I found that out, too and noted it in this thread:

I hope, that OH3 will eventually update to a more recent ECMA Script version.