Function deno_net::raw::take_network_stream_resource

source ยท
pub fn take_network_stream_resource(
    resource_table: &mut ResourceTable,
    stream_rid: ResourceId
) -> Result<NetworkStream, AnyError>
Expand description

In some cases it may be more efficient to extract the resource from the resource table and use it directly (for example, an HTTP server). This method will extract a stream from the resource table and return it, unwrapped.