mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
14 lines
214 B
Lua
14 lines
214 B
Lua
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)
|