alex, 我觉得在luactor中没必要把消息约定为msg, 而是以...直接给出接口更优雅 actor.send('foo', 'f', 'test1', 'test2') actor.wait({ f = function(sender, ...) local v1, v2 = ... print(v1, v2) end }) ;-)
alex, 我觉得在luactor中没必要把消息约定为msg, 而是以...直接给出接口更优雅
actor.send('foo', 'f', 'test1', 'test2')
actor.wait({
f = function(sender, ...)
local v1, v2 = ...
print(v1, v2)
end
})
;-)