28 lines
470 B
Lua
28 lines
470 B
Lua
---@meta
|
|
|
|
local utils
|
|
|
|
---@class Timeout
|
|
local Timeout
|
|
---@async
|
|
---@param timeout number
|
|
---@param callback fun()
|
|
function Timeout:start(timeout, callback) end
|
|
---@async
|
|
function Timeout:cancel() end
|
|
---@async
|
|
---@return boolean
|
|
function Timeout:is_waiting() end
|
|
|
|
utils.Timeout = {}
|
|
---@return Timeout
|
|
function utils.Timeout.new() end
|
|
|
|
--- @return string hostname
|
|
function utils.get_hostname() end
|
|
|
|
--- @return number epoch
|
|
function utils.get_epoch() end
|
|
|
|
return utils
|