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
Resources (AKA rid) are Deno's version of file descriptors. They are integer values used to refer to open files, sockets, and other concepts. For testing it would be good to be able to query the system for how many open resources there are.
Alternatively we could have deno.resources() which returns a list of different open resources and their ids. It might look like this [ [0, "stdin"], [1, "stdout"], [2, "stderr"], [7, "httpBody"] ]
The text was updated successfully, but these errors were encountered:
ry
changed the title
Wanted: op to give number of open "resources"
op to give number of open "resources"
Oct 29, 2018
Resources (AKA
rid
) are Deno's version of file descriptors. They are integer values used to refer to open files, sockets, and other concepts. For testing it would be good to be able to query the system for how many open resources there are.The table that holds them is here:
deno/src/resources.rs
Line 41 in 8b39d2c
Maybe call this
deno.numResources()
Alternatively we could have
deno.resources()
which returns a list of different open resources and their ids. It might look like this[ [0, "stdin"], [1, "stdout"], [2, "stderr"], [7, "httpBody"] ]
The text was updated successfully, but these errors were encountered: