Материал из Module developer
Перейти к: навигация, поиск

module.SetInterval

Creating a cyclic function

Синтаксис

module.SetInterval(Delay, Function, [This])

Название Пример Описание
Delay 1000 type: number
Delay (in miliseconds)
Function function(){...} type: Function
An Unnamed function or a link to a named function where actions are performed
This type: Object
Pointer to an object, that services the function (optional)
На выходе
Number 1 type: Number
Interval ID


Пример

var Interval = module.SetInterval(1000, function(){
	IR.Log("Hello, world!");
});