EventLoop.runOnce

ptrdiff_t runOnce(int timeoutMs) @trusted nothrow

Run one iteration of the event loop.

Parameters

timeoutMsMaximum time to wait for events, -1 for infinite.

Returns

Number of callbacks dispatched, or -1 on error.