On 08/01/2014 11:55 AM, Iñaki Baz Castillo wrote: > 2014-08-01 11:34 GMT+02:00 Saúl Ibarra Corretgé <[email protected]>: >> Node >> uses UV_RUN_ONCE, in order to be able to emit an event just before the >> loop is going to exit and thus execution will finish. You can't do that >> with UV_RUN_DEFAULT. > > You can. Just call uv_close for that handle when its event is fired. > >
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. -- Saúl Ibarra Corretgé bettercallsaghul.com
signature.asc
Description: OpenPGP digital signature
