nvim_runtime_lua

uv.uv_check_t

uv_check_t - Check handle

[uv_handle_t][] functions also apply.

Check handles will run the given callback once per loop iteration, right after polling for I/O.

local check = uv.new_check()
check:start(function()
  print("After I/O polling")
end)

Methods2

function uv_check_t.start(callback: fun() -> nil) -> (success 0 | nil, err nil | string, err_name uv.error_name | nil)

Start the handle with the given callback.

function uv_check_t.stop() -> (success 0 | nil, err nil | string, err_name uv.error_name | nil)

Stop the handle, the callback will no longer be called.