blob: 1691d49a6c658e5cf04738c6c4977878a5b19793 (
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
---@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
|