Skip to content

How might I use my wasm code synchronously? #3757

Answered by daxpedda
akprasad asked this question in Q&A
Discussion options

You must be logged in to vote

We do export a function called initSync which you could use instead of the default.
But you have to somehow fetch the Wasm file which is usually asynchronous by nature.

See the example.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@akprasad
Comment options

Answer selected by akprasad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #3756 on December 25, 2023 23:56.