Screen.receiveEvent

If start was called without a Tid to send to, then events are delivered into a queue that can be polled via this API. This function is thread safe.

  1. Event receiveEvent(Duration dur)
    interface Screen
    Event
    receiveEvent
    (
    Duration dur
    )
  2. Event receiveEvent()

Parameters

dur Duration

maximum time to wait, if no event is available then EventType.none is returned.

Return Value

Type: Event

The event, which will be EventType.none if it times out, or EventType.closed if it is stopped.

Meta