view teal-src/prosody/util/time.d.tl @ 14080:973609bad40a

util.time: Import sleep from luasocket We might not want to use the full LuaSocket for such a tiny function which will never change. This drops win32 support but that should be fine.
author Link Mauve <linkmauve@linkmauve.fr>
date Fri, 30 Jan 2026 14:08:53 +0100
parents fbbf4f0db8f0
children
line wrap: on
line source


local record lib
	now : function () : number
	monotonic : function () : number
	sleep : function (number)
end
return lib