vibe.d beta banner
get vibe.d
0.8.5

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

Function createTimer

Creates a new timer without arming it.

Timer createTimer (
  nothrow @safe void delegate() callback = cast(void delegate() nothrow @safe)null
) nothrow @safe;

Each time callback gets invoked, it will be run inside of a newly started task.

Parameters

NameDescription
callback If non-null, this delegate will be called when the timer fires

See also

createLeanTimer, setTimer

Authors

Sönke Ludwig

Copyright

© 2012-2019 RejectedSoftware e.K.

License

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