diff options
Diffstat (limited to 'server-beta/src/pub/brave.lua')
-rw-r--r-- | server-beta/src/pub/brave.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/server-beta/src/pub/brave.lua b/server-beta/src/pub/brave.lua new file mode 100644 index 00000000..3cfa3e40 --- /dev/null +++ b/server-beta/src/pub/brave.lua @@ -0,0 +1,15 @@ +local thread = require 'bee.thread' + +---@class pub_brave +local mt = {} +mt.__index = mt +mt.type = 'pub.brave' + +return function (name) + log.info('Create pub brave:', name) + thread.newchannel(name) + local brave = setmetatable({ + channel = thread.channel(name), + }, mt) + return brave +end |