Application.Sleep() or wait()

For an Electron app, is there any wait() or sleep() functionality available? I'm pretty sure I can use some javascript methods for this, but I could not figure out what is available out of the box

Sorry, this isn't available, such functions would block a UI thread in a browser and this is not done.