Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

BytesStream.ReadingTask

import { BytesStream } from "https://raw.githubusercontent.com/i-xi-dev/bytes.es/4.4.2/deps.ts"; 

const { ReadingTask } = BytesStream;

The byte stream reading task.

class ReadingTask {
private constructor(stream: Source, options?: Loading.Options);
async run(): Promise<Uint8Array>;
 
static create(stream: Source, options?: Loading.Options): ReadingTask;
}

§Constructors

§
new ReadingTask(stream: Source, options?: Loading.Options) private
[src]
@param stream
  • The byte stream.
@param options
  • The reading options.

§Methods

§
run(): Promise<Uint8Array>
[src]
@return

The Promise that fulfills with a read byte sequence.

§Static Methods

§
create(stream: Source, options?: Loading.Options): ReadingTask
[src]