vibe.d beta banner
get vibe.d
0.8.2

Asynchronous I/O that doesn’t get in your way, written in D

setIdleHandler - multiple declarations

Function setIdleHandler

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

void setIdleHandler (
  @safe void delegate() del
);

void setIdleHandler (
  @safe bool delegate() del
);

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.

Function setIdleHandler

Scheduled for deprecation - use a @safe callback instead.

void setIdleHandler (
  void delegate() del
);

void setIdleHandler (
  bool delegate() del
);
Authors

Sönke Ludwig

Copyright

© 2012-2016 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.