mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 11:03:12 +00:00
hello world
This commit is contained in:
10
testtimer.lua
Normal file
10
testtimer.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
local skynet = require "skynet"
|
||||
|
||||
skynet.callback(function(addr,content)
|
||||
if content == nil then
|
||||
print("sn:",addr)
|
||||
skynet.command("TIMEOUT","100:"..tostring(addr+1))
|
||||
end
|
||||
end)
|
||||
|
||||
skynet.command("TIMEOUT","0:0")
|
||||
Reference in New Issue
Block a user