skynet.fork returns the coroutine, see Issue #287

This commit is contained in:
Cloud Wu
2015-06-04 16:06:09 +08:00
parent 1fec2e6063
commit 55d0d57d5c

View File

@@ -450,6 +450,7 @@ function skynet.fork(func,...)
func(tunpack(args))
end)
table.insert(fork_queue, co)
return co
end
local function raw_dispatch_message(prototype, msg, sz, session, source, ...)