gossamer/readable_stream/byob_reader
Types
pub type ByobReader(a)
pub type ByobReaderReadOption {
Min(Int)
}
Constructors
-
Min(Int)
Values
pub fn cancel(
reader: ByobReader(a),
reason reason: r,
) -> promise.Promise(Result(Nil, String))
pub fn closed(
of reader: ByobReader(a),
) -> promise.Promise(Result(Nil, String))
pub fn read(
reader: ByobReader(a),
into view: array_buffer.ArrayBufferView,
with options: List(ByobReaderReadOption),
) -> promise.Promise(
Result(
read_result.ReadResult(array_buffer.ArrayBufferView),
String,
),
)
pub fn release_lock(
reader: ByobReader(a),
) -> Result(ByobReader(a), String)