Skip to content

AsyncFileWriter doesn't need to be Send #7612

@jpopesculian

Description

@jpopesculian

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

The AsyncFileWriter doesn't need to be Send and is therefore too restrictive. For context, I want to implement AsyncFileWriter in a WASM context with js_sys types. However, all js_sys types are !Send which makes it impossible to implement.

Describe the solution you'd like

Remove the Send requirement for AsyncFileWriter

Describe alternatives you've considered

I can implement the AsyncFileWriter using only rust types which involves writing to a buffer and waiting for completion, but I don't particularly want to do that in this context because I'd like to upload while writing to reduce memory usage in the browser.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAny new improvement worthy of a entry in the changelog

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions