zookatronZ
Denoβ€’7mo agoβ€’
2 replies
zookatron

Is there a way to view active resources keeping the Deno event loop open?

I'm trying to debug a Deno process mysteriously staying alive when it should close. Is there an equivalent of the getActiveResourcesInfo API from node? When I try to do
import { getActiveResourcesInfo } from 'node:process';
in Deno I get the error
Uncaught SyntaxError: The requested module 'node:process' does not provide an export named 'getActiveResourcesInfo'
so it looks like this particular API is unimplemented in Deno. I've also tried looking around in the inspector using
deno run --inspect
but I can't find any way to see the active resources there.
Was this page helpful?