joyent/libuv

can uv_timer_start be called multiple times?

Closed this issue · 1 comments

Could the documentation state more about the invariants, pre-conditions, and post-conditions for the various uv_timer functions?

  • May uv_timer_start be called a second time, after the callback from a previous call to uv_timer_start has been called?
  • May uv_timer_start be called a second time, before the callback from a previous call to uv_timer_start has been called?
  • May uv_timer_stop be called if uv_timer_start has not been called?

The answer to all of them is "yes". If you want to improve the docs please open an issue or pull request in https://github.com/libuv/libuv