You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Returns an array containing new the resources created after script start
23
+
/**
24
+
*
25
+
* Returns an array containing the new resources created after script started.
26
+
* A new resource is something that will keep the event loop running.
27
+
*
28
+
* In order to be counted as a new resource, a resource MUST:
29
+
* - Must NOT share an address with a libuv resource that existed at the start of script
30
+
* - Must be referenced. See [here](https://nodejs.org/api/timers.html#timeoutref) for more context.
31
+
* - Must NOT be an inactive server
32
+
*
33
+
* We're using the following tool to track resources: `process.report.getReport().libuv`
34
+
* For more context, see documentation for [process.report.getReport()](https://nodejs.org/api/report.html), and [libuv](https://docs.libuv.org/en/v1.x/handle.html).
* @property {boolean} is_active Is the resource active? For a socket, this means it is allowing I/O. For a timer, this means a timer is has not expired.
44
+
* @property {string} type What is the resource type? For example, 'tcp' | 'timer' | 'udp' | 'tty'... (See more in [docs](https://docs.libuv.org/en/v1.x/handle.html)).
45
+
* @property {boolean} is_referenced Is the resource keeping the JS event loop active?
0 commit comments