ext/libuv/docs/src/async.rst in libuv-3.2.1 vs ext/libuv/docs/src/async.rst in libuv-3.2.2
- old
+ new
@@ -33,15 +33,19 @@
.. c:function:: int uv_async_init(uv_loop_t* loop, uv_async_t* async, uv_async_cb async_cb)
Initialize the handle. A NULL callback is allowed.
+ :returns: 0 on success, or an error code < 0 on failure.
+
.. note::
Unlike other handle initialization functions, it immediately starts the handle.
.. c:function:: int uv_async_send(uv_async_t* async)
- Wakeup the event loop and call the async handle's callback.
+ Wake up the event loop and call the async handle's callback.
+
+ :returns: 0 on success, or an error code < 0 on failure.
.. note::
It's safe to call this function from any thread. The callback will be called on the
loop thread.