libuv has a void uv_close(uv_handle_t* handle, uv_close_cb close_cb) method to close handles which takes a callback.
As the title says, is the handle active (in terms of I/O) before close_cb is called? For example, can a UDP handle fire a receive callback and a timer handle fire a timer callback before close_cb?
The closest thing in the documentation I could find is "Handles that wrap file descriptors are closed immediately but close_cb will still be deferred to the next iteration of the event loop." However, I'm not sure which handles fall into this criteria and more importantly, what "closed immediately" means exactly (stops all callbacks? stops only new callbacks? removed from the event loop entirely?).