A simple function that resolves after a specific amoutn of time. This is useful to create a delay with await.
console.log('hohoho');await func.wait(500);console.log('hohoho after 500ms'); Copy
console.log('hohoho');await func.wait(500);console.log('hohoho after 500ms');
A simple function that resolves after a specific amoutn of time. This is useful to create a delay with await.