setIdleHandler

Sets a callback that is called whenever no events are left in the event queue.

The callback delegate is called whenever all events in the event queue have been processed. Returning true from the callback will cause another idle event to be triggered immediately after processing any events that have arrived in the meantime. Returning false will instead wait until another event has arrived first.

  1. void setIdleHandler(void delegate() @(safe) nothrow del)
  2. void setIdleHandler(bool delegate() @(safe) nothrow del)
    @safe nothrow
    void
    setIdleHandler
    (
    bool delegate
    ()
    @safe nothrow
    del
    )

Meta