Fixed and documented the newProcessor changes. Rockspec fix

This commit is contained in:
2022-04-02 00:22:34 -04:00
parent e8a3cd731d
commit c0fb94ddbb
3 changed files with 11 additions and 7 deletions
+4 -3
View File
@@ -2,7 +2,7 @@ if os.getenv("LOCAL_LUA_DEBUGGER_VSCODE") == "1" then
package.path="multi/?.lua;multi/?/init.lua;multi/?.lua;multi/?/?/init.lua;"..package.path
require("lldebugger").start()
else
package.path="./?.lua;../?/init.lua;../?.lua;../?/?/init.lua;"..package.path
--package.path="./?.lua;../?/init.lua;../?.lua;../?/?/init.lua;"..package.path
end
--[[
This file runs all tests.
@@ -20,9 +20,9 @@ end
The expected and actual should "match" (Might be impossible when playing with threads)
This will be pushed directly to the master as tests start existing.
]]
local multi, thread = require("multi"):init{priority=true}
local multi, thread = require("multi"):init()--{priority=true}
local good = false
local proc = multi:newProcessor("Test")
local proc = multi:newProcessor("Test",true)
proc:newAlarm(3):OnRing(function()
good = true
end)
@@ -148,6 +148,7 @@ end)
runTest().OnError(function(...)
print("Error:",...)
end)
print("Pumping proc")
while true do
proc.run()
end