From 7801b00a804bcd68aacda265afdf4d774486b4e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 20 Jul 2021 19:36:35 +0800 Subject: update --- meta/3rd/love2d/library/love.thread.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meta/3rd/love2d/library/love.thread.lua') diff --git a/meta/3rd/love2d/library/love.thread.lua b/meta/3rd/love2d/library/love.thread.lua index 3551559e..64769edb 100644 --- a/meta/3rd/love2d/library/love.thread.lua +++ b/meta/3rd/love2d/library/love.thread.lua @@ -30,6 +30,8 @@ function love.thread.newChannel() end --- ---Creates a new Thread from a filename, string or FileData object containing Lua code. --- +---@overload fun(fileData: love.FileData):love.Thread +---@overload fun(codestring: string):love.Thread ---@param filename string # The name of the Lua file to use as the source. ---@return love.Thread thread # A new Thread that has yet to be started. function love.thread.newThread(filename) end @@ -50,6 +52,7 @@ function Channel:clear() end --- ---It waits until a message is in the queue then returns the message value. --- +---@overload fun(timeout: number):any ---@return any value # The contents of the message. function Channel:demand() end @@ -108,6 +111,7 @@ function Channel:push(value) end --- ---See Variant for the list of supported types. --- +---@overload fun(value: any, timeout: number):boolean ---@param value any # The contents of the message. ---@return boolean success # Whether the message was successfully supplied (always true). function Channel:supply(value) end @@ -137,6 +141,7 @@ function Thread:isRunning() end --- ---Beginning with version 0.9.0, threads can be restarted after they have completed their execution. --- +---@overload fun(arg1: any, arg2: any, ...: any) function Thread:start() end --- -- cgit v1.2.3