KwTimer.Wait

__NOTOC__
Creates a timer for a function call.
If the function which is called by the timer returns a number this number is the number of seconds after which the function is called again.
== Parameters ==
=== Arguments ===
:;seconds
::number - The wait time until the function is called.
:;func
::function - The function which should be called after the wait time.
:;id
::number - The id of the timer(if nil a new id is generated).
:;paramas
::table - A table with parameters witch are passed to the function(can be nil if no parameters are needed).
=== Returns ===
:;id
::number - The id of the timer.
== Example 1 ==
local function printSomething(arg1,arg2,arg3)
 DEFAULT_CHAT_FRAME:AddMessage(arg1.." "..arg2.." "..arg3)
end
kwTimer.Wait(0.5,printSomething,nil,{"print","example","one"})
== Example 2 ==
callNumber = 0
local function loopExample()
 DEFAULT_CHAT_FRAME:AddMessage(callNumber)
 callNumber=callNumber+1
 if callNumber==10 then
 return
 else
 return 5
 end
end
kwTimer.Wait(5,loopExample)