mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 11:33:09 +00:00
add snax.self and snax.exit
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
local skynet = require "skynet"
|
||||
local queue = require "skynet.queue"
|
||||
local snax = require "snax"
|
||||
|
||||
local i = 0
|
||||
local hello = "hello"
|
||||
@@ -32,6 +33,10 @@ function accept.hello()
|
||||
end)
|
||||
end
|
||||
|
||||
function accept.exit(...)
|
||||
snax.exit(...)
|
||||
end
|
||||
|
||||
function response.error()
|
||||
error "throw an error"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user