vibe.d beta banner
get vibe.d
0.10.1

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-2020 Sönke Ludwig

License

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