ReadableStreamReader<T>
Namespace: Vercel.AI.Util
public sealed class ReadableStreamReader<T>Default reader for a ReadableStream%601.
Type parameters
| Name | Description |
|---|---|
T |
Inheritance: object
Methods
Section titled “Methods”CancelAsync()
Section titled “CancelAsync()”public Task CancelAsync()Cancels the stream and releases this reader.
Returns: Task
ReadAsync()
Section titled “ReadAsync()”public Task<StreamRead<T>> ReadAsync()Reads the next chunk, a completion, or a failure.
Returns: Task<StreamRead<T>>
ReleaseLock()
Section titled “ReleaseLock()”public void ReleaseLock()Releases the lock without cancelling.
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product