blob: 790db9956c78f233043263a2941d8f99ac0e1da9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
---@meta
--- luv_work_ctx_t
---
---@class uv.luv_work_ctx_t : userdata
local work_ctx
--- Queues a work request which will run `work_callback` in a new Lua state in a
--- thread from the threadpool with any additional arguments from `...`. Values
--- returned from `work_callback` are passed to `after_work_callback`, which is
--- called in the main loop thread.
---
---@param ... uv.threadargs
---@return boolean|nil success
---@return uv.error.message|nil err
---@return uv.error.name|nil err_name
function work_ctx:queue(...) end
|