We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently we support ReaderSync but it's be nice to be able to pass a async Reader
ReaderSync
Reader
/** Asynchronous reader. */ type Reader = { read(buffer: Uint8Array): Promise<Nullable<number>> } /** Mocked reader */ class MockReader implements Reader { constructor(string: string) { this.#data = new TextEncoder().encode(string) } readonly #data #cursor = 0 async read(buffer: Uint8Array) { const bytes = this.#data.slice(this.#cursor, this.#cursor + buffer.length) buffer.set(bytes) this.#cursor = Math.min(this.#cursor + bytes.length, this.#data.length) return bytes.length || null } }
This however may require a bit of work since we need to patch xml/wasm_xml_parser/src/lib.rs to support asynchronous reading, possibly using tokio ?
The text was updated successfully, but these errors were encountered:
fix(xml): cleanup comments (see #49)
909ef95
No branches or pull requests
Currently we support
ReaderSync
but it's be nice to be able to pass a asyncReader
This however may require a bit of work since we need to patch xml/wasm_xml_parser/src/lib.rs to support asynchronous reading, possibly using tokio ?
The text was updated successfully, but these errors were encountered: