Skip to content

Proper way to 'unload' a loaded wasm module #1301

Answered by Robbepop
sampaioletti asked this question in Q&A
Discussion options

You must be logged in to vote

You can load multiple modules using the same Wasmi Engine. Wasmi Engine mostly holds information about a module's function code. All other information is stored in the Store. You are right that it is currently not possible to "unload" a Wasm module from an Engine. This has technical reasons. If this use case is common enough we might be able to add this functionality.

So if it is important to unload a Wasmi Module you'd need to drop Module, Store and Linker.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sampaioletti
Comment options

@Robbepop
Comment options

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