From 8a1f378f05eacd1ea7ae4bf2950b7494417fd22b Mon Sep 17 00:00:00 2001 From: Qix Date: Tue, 8 Nov 2022 09:57:54 +0100 Subject: [PATCH] doc: mention close_cb can be NULL (#3810) --- docs/src/handle.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/src/handle.rst b/docs/src/handle.rst index 0edb7d7a..e91d6e8f 100644 --- a/docs/src/handle.rst +++ b/docs/src/handle.rst @@ -153,6 +153,9 @@ API In-progress requests, like uv_connect_t or uv_write_t, are cancelled and have their callbacks called asynchronously with status=UV_ECANCELED. + `close_cb` can be `NULL` in cases where no cleanup or deallocation is + necessary. + .. c:function:: void uv_ref(uv_handle_t* handle) Reference the given handle. References are idempotent, that is, if a handle