EventLoop.run

ptrdiff_t run() @trusted nothrow

Run the event loop until stop is called.

Returns

Total callbacks dispatched, or -1 on error.