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 😁
Currently we cannot use a reference to a
tsify(from_wasm_abi)type in aasyncfunction.This is because reference in
asyncfunction needs to implementLongRefFromWasmAbifor reasons described in wasm-bindgen#3188 and here#32 actually showed that the implementation of
RefFromWasmAbibefore the fix #33 was the correct one forLongRefFromWasmAbiI plan to do a PR to implement this. This would make values deriving
from_wasm_abiuniversally 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-nextprovides 😁