Screen.waitForEvent

Wait for at least one event to be posted, for up to the given time.

  1. bool waitForEvent(Duration timeout, Duration resched)
    interface Screen
    @safe
    bool
    waitForEvent
    (
    Duration timeout
    ,
    ref Duration resched
    )
  2. bool waitForEvent(Duration timeout)

Parameters

timeout Duration

maximum duration to wait for an event to arrive

resched Duration

if no event was posted, the caller should make another attempt no later than this in order to handle incompletely parsed events

Return Value

Type: bool

true if at least one event is available, false otherwise.

Meta