yev_loop_run()

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

yev_loop

yev_loop_h

Handle to the event loop instance.

timeout_in_seconds

int

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