Thanks! Although it is a bit disappointing to know - I was hoping to be 
able to implement async/await on top of loop, but that's not going to work 
without nesting.

On Thursday, April 7, 2016 at 8:20:24 PM UTC+2, Saúl Ibarra Corretgé wrote:
>
> uv_run is not designed to be nested.
> On Apr 7, 2016 15:19, "Matej Knopp" <[email protected] <javascript:>> 
> wrote:
>
>> Hi everyone,
>>
>> I'm wondering if calling uv_run from another libuv callback (on same 
>> loop) is supposed to run, similar to how CFRunLoop supports nested 
>> execution. 
>>
>> Initially I thought it would work, but then I looked at uv__async_event 
>> implementation, which leaves &loop->async_handles in inconsistent state 
>> while executing callbacks. Is this deliberate? Should I just forget about 
>> nesting uv_run calls, or is this something that needs to be fixed?
>>
>> Cheers,
>> Matej
>>
>> -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected] <javascript:>
>> .
>> Visit this group at https://groups.google.com/group/libuv.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 https://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to