mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
use table.unpack instead of unpack
This commit is contained in:
@@ -285,10 +285,12 @@ end
|
||||
|
||||
local fork_queue = {}
|
||||
|
||||
local tunpack = table.unpack
|
||||
|
||||
function skynet.fork(func,...)
|
||||
local args = { ... }
|
||||
local co = co_create(function()
|
||||
func(unpack(args))
|
||||
func(tunpack(args))
|
||||
end)
|
||||
table.insert(fork_queue, co)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user