mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
change skynet.timeout api
This commit is contained in:
@@ -16,7 +16,7 @@ end
|
||||
|
||||
skynet.start(function()
|
||||
skynet.fork(wakeup, coroutine.running())
|
||||
skynet.timeout(300, timeout, "Hello World")
|
||||
skynet.timeout(300, function() timeout "Hello World" end)
|
||||
for i = 1, 10 do
|
||||
print(i, skynet.now())
|
||||
print(skynet.sleep(100))
|
||||
|
||||
Reference in New Issue
Block a user