summaryrefslogtreecommitdiff
path: root/meta/3rd/bee/library/bee/thread.lua
blob: 9e005ea45c40c410190fd2d37ab8f833fa1ca4b1 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---@meta

---@class bee.rpc:lightuserdata

---@class bee.thread_obj:lightuserdata

---@class bee.channel
local channel = {}

function channel:push(...)
end

---@return boolean ok
---@return ...
function channel:pop()
end

---@return ...
function channel:bpop()
end

---@class bee.thread
local m = {}

function m.sleep(sec)
end

---@return bee.thread_obj
function m.thread(source, params)
end

function m.newchannel(name)
end

---@return bee.channel
function m.channel(name)
end

function m.reset()
end

---@param th bee.thread_obj
function m.wait(th)
end

function m.setname(name)
end

---@return bee.rpc
function m.rpc_create()
end

function m.rpc_wait(rpc)
end

function m.rpc_return(rpc)
end

function m.preload_module()
end

return m