Skip to content

Feature: impl LongRefFromWasmAbi for T where T: Tsify + FromWasmAbi to use reference as input of async function #34

@Pantamis

Description

@Pantamis

Currently we cannot use a reference to a tsify(from_wasm_abi) type in a async function.

This is because reference in async function needs to implement LongRefFromWasmAbi for reasons described in wasm-bindgen#3188 and here

#32 actually showed that the implementation of RefFromWasmAbi before the fix #33 was the correct one for LongRefFromWasmAbi

I plan to do a PR to implement this. This would make values deriving from_wasm_abi universally admissible as input by value or reference of a wasm-bindgen function async or not !

I am working on finding a good test for it and maybe change the documentation to feature all the nice things tsify-next provides 😁

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions