I've been experimenting with the new Objective C JavascriptCore Framework.
This is crazy, but it seems that it doesn't have setTimeout
or setInterval
. Which... I don't understand.
- Am I right about this?
- Are there alternatives?
I could potentially create the timer in Objective C but most of my library is written in Javascript, and aside from that, it seems just weird not having setInterval
or setTimeout
!!
I've tried a few alternative methods:
window.setInterval(function(){ /* dosomething */ }, 1000);
setInterval(function(){ /* dosomething */ }, 1000);
var interval;
interval = window.setInterval(function(){ /* dosomething */ }, 1000);
interval = setInterval(function(){ /* dosomething */ }, 1000);
I have no way to monitor what's even happening in the JSVirtualMachine either. All I know is my code stops working when there is a setInterval
called.
Any help super appreciated!