Skip to content

Changing wasm-in-wasm example to be async #1903

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 9, 2019

Conversation

Pauan
Copy link
Contributor

@Pauan Pauan commented Dec 7, 2019

This has three big benefits:

  1. It removes an unsafe usage.

  2. It uses the idiomatic async APIs rather than the soft deprecated sync APIs.

  3. The old code would error with a .wasm module which is bigger than 4KB. But the new code works no matter how big the .wasm file is.

@alexcrichton alexcrichton merged commit b71b136 into rustwasm:master Dec 9, 2019
@alexcrichton
Copy link
Contributor

Nice!

@Pauan Pauan deleted the async-wasm-in-wasm-example branch December 9, 2019 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants