I saw discussion here:
https://github.com/libuv/libuv/issues/390 and it looks like there's no universal way of transferring a handle between event loops.
Is there a way to close a handle without closing the file descriptor?
What I want to do, is in Node.js code to get a handle from the main context and pass it into the inspector background thread. This handle would be something like a TCP socket or pipe - not a timer, async or such. It looks like I can get FD from the main thread and then use uv_tcp_open or alike on a background thread to "reopen" it. My main concern would be that the main thread will still consider it open and I expect there will be some issues.
Any suggestions?