diff options
author | 2010-10-24 23:49:31 -0400 | |
---|---|---|
committer | 2010-10-24 23:49:31 -0400 | |
commit | 0c081ccd902d1bda0b740bdd703c19886c8be138 (patch) | |
tree | 60ed8be70d2b513cc7fe3d5b79002020c33373a6 /core | |
parent | 69aa0eba6708a4bcc0f8adc7936860f54ccc9510 (diff) | |
download | textadept-0c081ccd902d1bda0b740bdd703c19886c8be138.tar.gz textadept-0c081ccd902d1bda0b740bdd703c19886c8be138.zip |
Added _G.timeout function.
Diffstat (limited to 'core')
-rw-r--r-- | core/._G.luadoc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/._G.luadoc b/core/._G.luadoc index 1ee02455..2c7348b6 100644 --- a/core/._G.luadoc +++ b/core/._G.luadoc @@ -52,6 +52,14 @@ _VIEWS = {} function new_buffer() end --- +-- Calls a given function after an interval of time. +-- To repeatedly call the function, return true inside the function. A nil or +-- false return value stops repetition. +-- @param interval The interval in seconds to call the function after. +-- @param f The function to call. +function timeout(interval, f) end + +--- -- Resets the Lua state by reloading all init scripts. -- Language-specific modules for opened files are NOT reloaded. Re-opening the -- files that use them will reload those modules. |