From 8e3de6b5653ea7087a248b3eb2a4aea6067688b5 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:19:39 +0800 Subject: update --- meta/3rd/love2d/library/love.thread.lua | 7 +++++++ 1 file changed, 7 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 4331da02..da0b7c56 100644 --- a/meta/3rd/love2d/library/love.thread.lua +++ b/meta/3rd/love2d/library/love.thread.lua @@ -1,5 +1,6 @@ ---@meta +-- version: nil ---@class love.thread love.thread = {} @@ -25,6 +26,9 @@ function love.thread.newChannel() end ---@return love.Thread thread # A new Thread that has yet to be started. function love.thread.newThread(filename) end +--- +---An object which can be used to send and receive data between different threads. +--- ---@class love.Channel: love.Object local Channel = {} @@ -100,6 +104,9 @@ function Channel:push(value) end ---@return boolean success # Whether the message was successfully supplied (always true). function Channel:supply(value) end +--- +---A Thread is a chunk of code that can run in parallel with other threads. Data can be sent between different threads with Channel objects. +--- ---@class love.Thread: love.Object local Thread = {} -- cgit v1.2.3