blob: a29ce971e894f3aeedbd7b81258c8b8d69c39bac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
---@meta bee.thread
---@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
---@return string?
function thread.errlog() 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
|