nvim_runtime_lua

uv.luv_work_ctx_t

supers: userdata

Methods1

function luv_work_ctx_t.queue(...: uv.threadargs) -> (success nil | boolean, err nil | string, err_name uv.error_name | nil)

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.