Then it should be dangerous right? The first callback might never be called.
On Friday, 23 January 2015 03:52:16 UTC+5:30, Ben Noordhuis wrote: > > On Thu, Jan 22, 2015 at 11:16 PM, Devchandra Meetei <[email protected] > <javascript:>> wrote: > > Hi all > > is this usage pattern okay > > read_cb(....) > > { > > ... > > /// do something > > if(test) { > > uv_read_stop(); > > } > > > > > > > > uv_read_start(handle, alloc_cb, read_cb); > > uv_read_start(handle, alloc_cb, diff_read_cb); > > > > where diff_read_cb is new function? > > It is if there is a uv_read_stop() between the two uv_read_start() calls. > -- You received this message because you are subscribed to the Google Groups "libuv" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/libuv. For more options, visit https://groups.google.com/d/optout.
