Function close

Synopsis

#include <src/uvw/loop.h>

void close()

Description

Releases all internal loop resources.

Call this function only when the loop has finished executing and all open handles and requests have been closed, or the loop will emit an error.

An ErrorEvent will be emitted in case of errors.

Source

Lines 65-68 in src/uvw/loop.cpp. Line 178 in src/uvw/loop.h.

UVW_INLINE void Loop::close() {
    auto err = uv_loop_close(loop.get());
    return err ? publish(ErrorEvent{err}) : loop.reset();
}





Add Discussion as Guest

Log in