Skip to content

ReadableStreamReader<T>

Namespace: Vercel.AI.Util

public sealed class ReadableStreamReader<T>

Default reader for a ReadableStream%601.

Type parameters

Name Description
T

Inheritance: object

View source

public Task CancelAsync()

Cancels the stream and releases this reader.

Returns: Task

View source

public Task<StreamRead<T>> ReadAsync()

Reads the next chunk, a completion, or a failure.

Returns: Task<StreamRead<T>>

View source

public void ReleaseLock()

Releases the lock without cancelling.

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product