mirror of
https://github.com/denoland/deno.git
synced 2024-12-24 08:09:08 -05:00
10 lines
241 B
Rust
10 lines
241 B
Rust
|
pub fn op_set_nodelay(
|
||
|
state: &mut OpState,
|
||
|
rid: ResourceId,
|
||
|
nodelay: bool,
|
||
|
) -> Result<(), AnyError> {
|
||
|
let resource: Rc<TcpStreamResource> =
|
||
|
state.resource_table.get::<TcpStreamResource>(rid)?;
|
||
|
resource.set_nodelay(nodelay)
|
||
|
}
|