2014-08-01 12:29 GMT+02:00 Saúl Ibarra Corretgé <[email protected]>: > You can't. You don't know what the loop is going to do next while > running inside it. The event to be emitted is a global one, that is, > "hey, your application is about to end", it's not about a single handle.
Before you can run uv_run(UV_RUN_ONCE) you must exit the same loop (which was running with UV_RUN_DEFAULT), right? So, assuming the loop is normally running, why don't you call a custom function close_my_loop() which properly closes all the handles and notifies the application or whatever? Again, for me anything that ends the loop without closing all the handles is not a good design. Said that I'm not talking about Node since I do not know Node internals. -- Iñaki Baz Castillo <[email protected]> -- 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.
