diff options
Diffstat (limited to 'script/meta/bee/thread.lua')
-rw-r--r-- | script/meta/bee/thread.lua | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/script/meta/bee/thread.lua b/script/meta/bee/thread.lua new file mode 100644 index 00000000..6b4323a4 --- /dev/null +++ b/script/meta/bee/thread.lua @@ -0,0 +1,33 @@ +---@meta + +---@class bee.thread +local thread = {} + +---@param time number +function thread.sleep(time) end + +---@param name string +function thread.newchannel(name) end + +---@param name string +---@return bee.thread.channel +function thread.channel(name) end + +---@param script string +---@return bee.thread.thread +function thread.thread(script) end + +---@class bee.thread.channel +local channel = {} + +function channel:push(...) end + +---@return ... +function channel:pop() end + +---@return ... +function channel:bpop() end + +---@class bee.thread.thread + +return thread |