Imagine you have a simple function in Windows Script Host (JScript) environment:
function say(text) {
WScript.Sleep(5000);
WScript.Echo(text);
}
Is it possible to call say()
asynchronously?
Note: Such browser-based methods as setInterval()
or setTimeout
are not available in WSH.