Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/streams/mod.ts>Closer

Deno standard library
Go to Latest
interface Closer
Re-export
Deprecated
Deprecated

(will be removed in 1.0.0) Use ReadableStream and WritableStream instead.

import { type Closer } from "https://deno.land/std@0.210.0/streams/mod.ts";

An abstract interface which when implemented provides an interface to close files/resources that were previously opened.

Methods

close(): void

Closes the resource, "freeing" the backing file/resource.