ConsoleInput.pendingEvents

const(ConsoleInputEvent)[] pendingEvents() scope @trusted nothrow

Get pending events from the internal buffer.

This is called internally by the wakeup handler to retrieve events posted by the worker thread.

Returns

Slice of pending events, or empty if none available.