doc: add example usage for uv_sleep

This commit is contained in:
Kartik Puri 2025-12-02 14:45:19 +05:30
parent bf44c3fdcc
commit e421fb44b7

View File

@ -892,6 +892,16 @@ API
.. versionadded:: 1.34.0
.. code-block:: c
#include <uv.h>
#include <stdio.h>
int main() {
printf("Sleeping for 1 second...\n");
uv_sleep(1000);
printf("Awake!\n");
return 0;
}
String manipulation functions
-----------------------------