pause

PC's icon

Hi,
This seems quite an easy issue, but I didn't find anything about this in any javascript reference.... So I ask the question to you:

Is there a way to make a pause in Javascript, like, let say, the "delay(ms)" function does in ARDUINO/processing language?

I need to make a script that iterates a stream of data with a pause between each iteration.

Cheers
PC

Emmanuel Jourdan's icon

On 21 nov. 06, at 16:44, PC wrote:

>
> Hi,
> This seems quite an easy issue, but I didn't find anything about
> this in any javascript reference.... So I ask the question to you:
>
> Is there a way to make a pause in Javascript, like, let say, the
> "delay(ms)" function does in ARDUINO/processing language?
>
> I need to make a script that iterates a stream of data with a pause
> between each iteration.

Hi,

Have a look at the Task object (in JavaScriptInMax pdf).

Best,
ej

PC's icon

Thank you very much!
I've just looked at it and it's what i was looking for!

gratitude
PC