doc: add example usage for uv_sleep
This commit is contained in:
parent
bf44c3fdcc
commit
e421fb44b7
@ -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
|
||||
-----------------------------
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user