p2
0.0
|
create a Aio_handle
More...
Public Member Functions | |
static PN | aio_is_active (Potion *P, PN cl, PN self) |
static PN | aio_handle_uvsize (Potion *P, PN cl, PN self) |
static PN | aio_close (Potion *P, PN cl, PN self, PN cb) |
create a Aio_handle
Request handle to be closed. close_cb will be called asynchronously after this call. This MUST be called on each handle before memory is released.
Note that handles that wrap file descriptors are closed immediately but close_cb will still be deferred to the next iteration of the event loop. It gives you a chance to free up any resources associated with the handle.
In-progress requests, like uv_connect_t or uv_write_t, are cancelled and have their callbacks called asynchronously with status=-1 and the error code set to UV_ECANCELED.