Skip to content
Snippets Groups Projects

lua worker.bg_worker: also report missing cqueues

Merged Vladimír Čunát requested to merge missing-cqueues into master
All threads resolved!
+ 2
1
@@ -634,8 +634,9 @@ if has_cqueues then
end
else
-- Disable asynchronous execution
local function disabled () error('cqueues are required for asynchronous execution') end
local function disabled () error('lua cqueues are required for asynchronous execution') end
worker.sleep = disabled
worker.map = disabled
worker.coroutine = disabled
worker.bg_worker = setmetatable({}, { __index = disabled })
end
Loading