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

std/io/mod.ts>BufWriterSync#reset

The Deno Standard Library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method BufWriterSync.prototype.reset
import { BufWriterSync } from "https://deno.land/std@0.223.0/io/mod.ts";

Discards any unflushed buffered data, clears any error, and resets buffer to write its output to w.