add coroutine close for skynetco (#1392)

Co-authored-by: jietao.cjt <jietao.cjt@alibaba-inc.com>
This commit is contained in:
t0350
2021-04-29 14:40:37 +08:00
committed by GitHub
parent f61a27ac6b
commit 1e6781bd41
2 changed files with 11 additions and 1 deletions

View File

@@ -50,4 +50,5 @@ skynet.start(function()
print("main step", f())
print("main step", f())
-- print("main thread time:", profile.stop())
print("close", coroutine.close(coroutine.create(main)))
end)