mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
rewrite makefile, and remove luacode cache.
This commit is contained in:
10
test/testblockcall.lua
Normal file
10
test/testblockcall.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
local skynet = require "skynet"
|
||||
|
||||
skynet.start(function()
|
||||
local ping = skynet.newservice("pingserver")
|
||||
skynet.timeout(0,function()
|
||||
print(skynet.call(ping,"lua","PING","ping"))
|
||||
end)
|
||||
|
||||
print(skynet.blockcall(ping,"lua","HELLO"))
|
||||
end)
|
||||
Reference in New Issue
Block a user