View difference between Paste ID: CEp9XVSy and 7p4uZ5EJ
SHOW: | | - or go back to the newest paste.
1
function utils.timeoutFunc(func,timeout, ...)
2-
	if timeout == nil then timeout = -1 end
2+
3-
	local suc = true
3+
4
		if timeout == nil then
5
			return false
6-
		suc = false
6+
7-
		if timeout == -1 then
7+
			return false
8-
			break
8+
9
	end
10-
			break
10+
	return true
11
end