ExecuteWithDelay

ExecuteWithDelay

ExecuteWithDelay 函数在指定延迟结束后异步执行传入的回调。

参数

# 类型 说明
1 integer 执行传入回调前等待的延迟,单位为毫秒
2 function 指定延迟结束后要执行的回调

示例

ExecuteWithDelay(2000, function()
    print("Executed asynchronously after a 2 second delay\n")
end)

原文:docs/lua-api/global-functions/executewithdelay.md · 固定提交 560411f18512 · 来源与 MIT 许可