pub fn read_as_array_buffer(
    blob: &Blob
) -> impl Future<Output = Result<ArrayBuffer, FileReadError>>
Available on crate features file and futures only.
Expand description

Returns the contents of blob as an array buffer.

Equivalent to async fn read_as_array_buffer(blob: &Blob) -> Result<js_sys::ArrayBuffer, FileReadError> but without borrowing the Blob fore the lifetime of the future.