mirror of
https://github.com/bol-van/zapret2.git
synced 2026-06-17 12:50:04 +04:00
update docs
This commit is contained in:
+1
-1
@@ -2424,7 +2424,7 @@ function timer_set(name, func, period, oneshot, data)
|
||||
|
||||
* name - a unique timer name. If a timer with this name already exists, it is deleted and replaced with a new one. When replaced, the countdown restarts.
|
||||
* func - the timer function name (string)
|
||||
* period - the timer call frequency in milliseconds (see [timer resolution](#timers))
|
||||
* period - the timer call frequency in milliseconds
|
||||
* oneshot - a bool indicating whether the timer is single-shot (true) or periodic (false)
|
||||
* data - an arbitrary variable passed to the [timer-function](#timer-function-prototype)
|
||||
|
||||
|
||||
+1
-1
@@ -2584,7 +2584,7 @@ function timer_set(name, func, period, oneshot, data)
|
||||
|
||||
* name - уникальное имя таймера. если таймер с таким именем уже есть, он удаляется и замещается новым. При замещении отсчет времени начинается заново.
|
||||
* func - имя таймер функции (string)
|
||||
* period - периодичность вызова таймера в миллисекундах (см. [разрешение таймеров](#таймеры))
|
||||
* period - периодичность вызова таймера в миллисекундах
|
||||
* oneshot - bool признак является ли таймер однократным (true) или периодическим (false)
|
||||
* data - произвольная переменная, передаваемая [таймер-функции](#прототип-функции-таймера)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user