diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-20 19:36:35 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-20 19:36:35 +0800 |
commit | 7801b00a804bcd68aacda265afdf4d774486b4e9 (patch) | |
tree | dc73791db11a7c49f2eb25f9141d1497b6e1e7e3 /meta/3rd/love2d/library/love.thread.lua | |
parent | da6942640931afd8f39db0fc84e8e0394f95d9b1 (diff) | |
download | lua-language-server-7801b00a804bcd68aacda265afdf4d774486b4e9.zip |
update
Diffstat (limited to 'meta/3rd/love2d/library/love.thread.lua')
-rw-r--r-- | meta/3rd/love2d/library/love.thread.lua | 5 |
1 files changed, 5 insertions, 0 deletions
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 --- |