Screen.waitForEvent

Wait for at least one event to be posted. This simpler version can be used when the caller is in a simple poll/handle loop (typical for some simple applications.)

  1. bool waitForEvent(Duration timeout, Duration resched)
  2. bool waitForEvent(Duration timeout)
    interface Screen
    final @safe
    bool
    waitForEvent
    (
    Duration timeout = Duration.max
    )

Parameters

timeout Duration

maximum duration to wait for an event to arrive

Return Value

Type: bool

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

Meta