[libuv] uv_timer_start(), the repeat parameter

237 views
Skip to first unread message

Felix Halim

unread,
Jul 30, 2012, 11:38:18 PM7/30/12
to nod...@googlegroups.com
UV_EXTERN int uv_timer_start(uv_timer_t* timer, uv_timer_cb cb,
int64_t timeout, int64_t repeat);

Please add comments to the intended value for the "repeat" parameter
to the uv.h.
The repeat params here means call the uv_timer_cb() precisely every
"repeat" milliseconds, right?

So, does it exactly behave like setInterval() in Javascript?
That is, the "repeat" will not take the running time of the
uv_timer_cb() into account.


On Sat, Jul 28, 2012 at 1:58 AM, Ben Noordhuis <in...@bnoordhuis.nl> wrote:
> On Fri, Jul 27, 2012 at 6:42 PM, Bry <brandon...@gmail.com> wrote:
>> Why don't you guys open up the Wiki section on the uv github so we can get
>> some tuts rolling?
>
> Done.


So if I have libuv questions, should I post it in this mailing list?
or the wiki? or the Issues section?


Felix Halim

Ben Noordhuis

unread,
Jul 31, 2012, 7:37:25 AM7/31/12
to nod...@googlegroups.com
On Tue, Jul 31, 2012 at 5:38 AM, Felix Halim <felix...@gmail.com> wrote:
> UV_EXTERN int uv_timer_start(uv_timer_t* timer, uv_timer_cb cb,
> int64_t timeout, int64_t repeat);
>
> Please add comments to the intended value for the "repeat" parameter
> to the uv.h.
> The repeat params here means call the uv_timer_cb() precisely every
> "repeat" milliseconds, right?

s/precisely/approximately/

> So, does it exactly behave like setInterval() in Javascript?
> That is, the "repeat" will not take the running time of the
> uv_timer_cb() into account.

Yes.

> So if I have libuv questions, should I post it in this mailing list?
> or the wiki? or the Issues section?

The mailing list, please.
Reply all
Reply to author
Forward
0 new messages