4 ms·
Yes, I've used a similar technique myself; however I consider it only a last resort. But doesn't that require your language to have threads? Is it possible to d
by jakobegger 12y ago
Yes, I've used a similar technique myself; however I consider it only a last resort. But doesn't that require your language to have threads? Is it possible to do this in eg. Javascript?
- totony 12y agoThere is no sleep call that i know of in javascript, but you are right it depends on the language and its implementation of sleep. Edit: although you could emulate a sleep call by setting a (pediodic) timeout
- renekooi 12y agoFor node.js, there is a module: https://www.npmjs.com/package/deasync https://www.npmjs.com/package/deasync