From 0c081ccd902d1bda0b740bdd703c19886c8be138 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sun, 24 Oct 2010 23:49:31 -0400 Subject: Added _G.timeout function. --- core/._G.luadoc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core') diff --git a/core/._G.luadoc b/core/._G.luadoc index 1ee02455..2c7348b6 100644 --- a/core/._G.luadoc +++ b/core/._G.luadoc @@ -51,6 +51,14 @@ _VIEWS = {} -- @return the new buffer. 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 -- cgit v1.2.3