mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 11:33:09 +00:00
skynet.fork returns the coroutine, see Issue #287
This commit is contained in:
@@ -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, ...)
|
||||
|
||||
Reference in New Issue
Block a user