Tested and in productive use:

function delayFunctionCall(time, funct)
    local t = timer({ timeout = time or 0.01 })
    t:connect_signal("timeout", function() t:stop(); funct() end)
    t:start()
end

just hand over your wanted delay (if nil, 0.01s is used) and the
function doing what you want to have delayed. Works like a charm for me.

Cheers,
Manuel

-- 
To unsubscribe, send mail to awesome-unsubscr...@naquadah.org.

Reply via email to