Sleep
Using JS’s await feature, you can essentially pause execution of your code using ixfx’s Flow.sleep . This can make for very readable code and useful if you want to intersperse code with delays.
There are a few tricks to using the await keyword. You may need to declare your function as being asynchronous:
An alternative is delay, which takes a function to execute after some elapsed time.