Is there a new Timer API somewhere that allows me to do this?
await timer.wait(500);
Basically, to sleep for X ms and then resume execution of the rest of a function
Is there a new Timer API somewhere that allows me to do this?
await timer.wait(500);
Basically, to sleep for X ms and then resume execution of the rest of a function
Try use
I have a helper that I really like, just to add a bit of readability:
This allows me to use something like
You could easily make similar extension methods for milliseconds, minutes, hours, or whatever.