mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 04:33:05 +00:00
exit monitor
This commit is contained in:
@@ -627,4 +627,9 @@ function skynet.context_ptr()
|
||||
return c.context()
|
||||
end
|
||||
|
||||
function skynet.monitor(service)
|
||||
local monitor = skynet.uniqueservice(true, service)
|
||||
c.command("MONITOR", string.format(":%08x", monitor))
|
||||
end
|
||||
|
||||
return skynet
|
||||
|
||||
Reference in New Issue
Block a user