Function stop

Synopsis

#include <src/uvw/loop.h>

void stop() noexcept

Description

Stops the event loop.

It causes run() to end as soon as possible.
This will happen not sooner than the next loop iteration.
If this function was called before blocking for I/O, the loop won’t block for I/O on this iteration.

Source

Lines 84-86 in src/uvw/loop.cpp. Line 215 in src/uvw/loop.h.

UVW_INLINE void Loop::stop() noexcept {
    uv_stop(loop.get());
}





Add Discussion as Guest

Log in