EventLoop.runToCompletion

ptrdiff_t runToCompletion() @trusted nothrow

Run the event loop until no active watchers remain.

Returns

Total callbacks dispatched, or -1 on error.