mirror of
https://github.com/rayaman/multi.git
synced 2026-09-04 23:17:35 -04:00
Started to work on the scheduler rework
This commit is contained in:
+4
-2
@@ -15,7 +15,7 @@ package.path="./?.lua;../?.lua;../?/init.lua;../?.lua;../?/?/init.lua;"..package
|
||||
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()
|
||||
local multi, thread = require("multi"):init{priority=true}
|
||||
local good = false
|
||||
runTest = thread:newFunction(function()
|
||||
local objects = multi:newProcessor("Basic Object Tests")
|
||||
@@ -29,5 +29,7 @@ runTest = thread:newFunction(function()
|
||||
print(multi:getTasksDetails())
|
||||
os.exit()
|
||||
end)
|
||||
runTest().OnError(print)
|
||||
runTest().OnError(function(...)
|
||||
print("Error:",...)
|
||||
end)
|
||||
multi:mainloop()
|
||||
Reference in New Issue
Block a user