From 9f59e8e38c2fbc04043cd1131ef3dc2f6bd331ba Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Fri, 27 Jul 2012 14:44:06 +0200 Subject: [PATCH] include: update uv_close documentation --- include/uv.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/uv.h b/include/uv.h index bf95fdef..39d114a6 100644 --- a/include/uv.h +++ b/include/uv.h @@ -433,6 +433,10 @@ UV_EXTERN void uv_walk(uv_loop_t* loop, uv_walk_cb walk_cb, void* arg); * 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_EINTR. */ UV_EXTERN void uv_close(uv_handle_t* handle, uv_close_cb close_cb);