示例工程 22-scheduling-and-tasks
22-scheduling-and-tasks/03-blocking-task/_test.lua
-- @runtimes lua54 luajit
local h = require("harness")
local m = require("main")
h.describe("阻塞任务", function()
h.it("慢任务不会提前让出", function()
local r = m.run(function() end)
h.eq(r.order, { "slow1", "fast1", "slow2", "fast2" })
end)
end)
h.run()