blob: 15955aff5448819cf9d491832df2c8eca0ee5a28 (
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 integer
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.create(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
|