mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 11:33:09 +00:00
change source dir
This commit is contained in:
13
service/testtimer.lua
Normal file
13
service/testtimer.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
local skynet = require "skynet"
|
||||
|
||||
-- register a dummy callback function
|
||||
skynet.dispatch()
|
||||
|
||||
skynet.start(function()
|
||||
for i = 1, 10 do
|
||||
print(i)
|
||||
skynet.sleep(100)
|
||||
end
|
||||
skynet.exit()
|
||||
print("Test timer exit")
|
||||
end)
|
||||
Reference in New Issue
Block a user