Skip to main content
Module

std/io/_iotest.ts>TimeoutReader

Deno standard library
Go to Latest
class TimeoutReader
implements Reader
import { TimeoutReader } from "https://deno.land/std@0.139.0/io/_iotest.ts";

TimeoutReader returns Deno.errors.TimedOut on the second read with no data. Subsequent calls to read succeed.

Constructors

new
TimeoutReader(r: Reader)

Properties

count: number

Methods

read(p: Uint8Array): Promise<number | null>