doc: add uv_poll_cb status==UV_EBADF note (#3797)

This commit is contained in:
jensbjorgensen 2022-10-21 04:02:43 -05:00 committed by GitHub
parent acfe668ecb
commit 821b0ba8cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,7 +101,9 @@ API
with one of the `UV_E*` error codes (see :ref:`errors`). The user should with one of the `UV_E*` error codes (see :ref:`errors`). The user should
not close the socket while the handle is active. If the user does that not close the socket while the handle is active. If the user does that
anyway, the callback *may* be called reporting an error status, but this is anyway, the callback *may* be called reporting an error status, but this is
**not** guaranteed. **not** guaranteed. If `status == UV_EBADF` polling is discontinued for the
file handle and no further events will be reported. The user should
then call :c:func:`uv_close` on the handle.
.. note:: .. note::
Calling :c:func:`uv_poll_start` on a handle that is already active is Calling :c:func:`uv_poll_start` on a handle that is already active is