update doc/*/scripting/builtins/libapp.md

This commit is contained in:
MihailRis 2025-09-19 23:09:42 +03:00
parent 8cdb6c03aa
commit c4a61e8c9a
2 changed files with 9 additions and 3 deletions

View File

@ -25,9 +25,12 @@ Waits for the specified time in seconds, performing the main engine loop.
app.sleep_until(
-- function that checks the condition for ending the wait
predicate: function() -> bool,
-- the maximum number of engine loop ticks after which
-- maximum number of engine loop ticks after which
-- a "max ticks exceed" exception will be thrown
[optional] max_ticks = 1e9
[optional] max_ticks = 1e9,
-- maximum wait time in seconds.
-- (works with system time, including test mode)
[optional] timeout = 1e9
)
```

View File

@ -27,7 +27,10 @@ app.sleep_until(
predicate: function() -> bool,
-- максимальное количество тактов цикла движка, после истечения которых
-- будет брошено исключение "max ticks exceed"
[опционально] max_ticks = 1e9
[опционально] max_ticks = 1e9,
-- максимальное длительность ожидания в секундах.
-- (работает с системным временем, включая test-режим)
[опционально] timeout = 1e9
)
```