Skip to content
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

Guide: added and async fn call example with f64 #4097

Merged
merged 1 commit into from
Sep 7, 2024

Conversation

rimutaka
Copy link
Contributor

Added a small example (3 lines) to illustrate an async function call.

In the hind sight, the guide explains that part pretty well, but there was a bit of confusion in my head and it didn't "click" until I experimented with the async for a bit.

Having an example should help others comprehend the meaning of the paragraph just above it.

I admit that I may be adding more confusion without explaining that async_func_1_ret_number() returns a number, e.g. 200.
Happy to expand, but I tried to keep the change to a minimum.

Feel free to reject :)

Added a small example (3 lines) to illustrate an async function call.
Copy link
Collaborator

@daxpedda daxpedda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@daxpedda daxpedda merged commit ac8bd2d into rustwasm:main Sep 7, 2024
40 of 41 checks passed
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