Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/streams/mod.ts>Closer

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface Closer
Re-export
import { type Closer } from "https://deno.land/std@0.220.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.