yev_loop_run()
#
yev_loop_run()
starts the event loop and processes events until stopped or a timeout occurs.
Prototype
int yev_loop_run(
yev_loop_h yev_loop,
int timeout_in_seconds
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
Handle to the event loop instance. |
|
|
Maximum time in seconds to run the loop before returning. |
Return Value
Returns 0 on successful execution, or -1 if an error occurs.
Notes
If a callback function returns -1, the loop will break and exit early.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples