doc: add example usage for uv_sleep (#4955)

This commit is contained in:
Kartik Puri 2025-12-10 11:53:39 +05:30 committed by GitHub
parent 4eefcbeb5c
commit 504887a339
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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
-----------------------------