From 9e3644f9f5454f737cc94e2d1ddc0e3199255959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Tue, 2 Jul 2024 09:10:55 +0200 Subject: [PATCH] doc: add warning about uv_close --- docs/src/handle.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/src/handle.rst b/docs/src/handle.rst index e91d6e8f..ae0632f8 100644 --- a/docs/src/handle.rst +++ b/docs/src/handle.rst @@ -156,6 +156,10 @@ API `close_cb` can be `NULL` in cases where no cleanup or deallocation is necessary. + .. warning:: + Calling this function multiple times is not supported and will produce + a crash. + .. c:function:: void uv_ref(uv_handle_t* handle) Reference the given handle. References are idempotent, that is, if a handle