Fetch output may be accessed in one of several formats:
await result resolves to the reassembled object as Uint8Array.
for await (const packet of result) iterates over Data packets in segment number order.
more formats available as methods.
Result is lazy. Fetching starts when an output format is accessed.
You may only access one output format on a Result instance.
Formats other than await result can be accessed only once.
Return type of fetch function.
Remarks
Fetch output may be accessed in one of several formats:
await result
resolves to the reassembled object as Uint8Array.for await (const packet of result)
iterates over Data packets in segment number order.Result is lazy. Fetching starts when an output format is accessed. You may only access one output format on a Result instance. Formats other than
await result
can be accessed only once.