[Pas2js] sleep function

Michael Van Canneyt michael at freepascal.org
Sun Oct 21 09:07:44 CEST 2018



On Sun, 21 Oct 2018, Mr Bee via Pas2js wrote:

> Hi,
> Sorry if it sounds silly, but I couldn't find sleep function in sysutils unit. Is there a way to do non-destructive sleep or delay in pas2js?

No, there isn't.

The things that comes closest is the setTimeout function;

window.setTimeout(function, milliseconds);

Michael.


More information about the Pas2js mailing list