Function EventLoop.callLater

Arrange for the callback to be called after the given delay.

An instance of Callback is returned.

dg delegate will be called exactly once per call to callLater(). If two callbacks are scheduled for exactly the same time, it is undefined which will be called first.

The optional positional args will be passed to the callback when it is called.

Prototype

final auto callLater(Dg, Args...)(
  Duration delay,
  Dg dg,
  Args args
);

Authors

Dragos Carp

Copyright

© 2015-2016 Dragos Carp

License

Boost Software License - Version 1.0