uv.uv_req_t
uv_req_t - Base request
uv_req_t is the base type for all libuv request types.
Methods2
function uv_req_t.cancel() -> (success 0 | nil, err nil | string, err_name uv.error_name | nil)
Cancel a pending request. Fails if the request is executing or has finished executing. Only cancellation of uv_fs_t, uv_getaddrinfo_t, uv_getnameinfo_t and uv_work_t requests is currently supported.
function uv_req_t.get_type() -> (type string, enum integer)
Returns the name of the struct for a given request (e.g. "fs" for uv_fs_t) and the libuv enum integer for the request's type (uv_req_type).