Class CheckHandle

Synopsis

#include <src/uvw/check.h>

class CheckHandle final: public Handle<CheckHandle, uv_check_t>

Description

The CheckHandle handle.

Check handles will emit a CheckEvent event once per loop iteration, right after polling for I/O.

To create a CheckHandle through a Loop, no arguments are required.

Inheritance

Ancestors: Handle

Methods

initInitializes the handle.
startStarts the handle.
stopStops the handle.

Source

Lines 29-53 in src/uvw/check.h.

class CheckHandle final: public Handle<CheckHandle, uv_check_t> {
    static void startCallback(uv_check_t *handle);

public:
    using Handle::Handle;

    /**
     * @brief Initializes the handle.
     * @return True in case of success, false otherwise.
     */
    bool init();

    /**
     * @brief Starts the handle.
     *
     * A CheckEvent event will be emitted once per loop iteration, right after
     * polling for I/O.
     */
    void start();

    /**
     * @brief Stops the handle.
     */
    void stop();
};





Add Discussion as Guest

Log in