Skip to content

Add async sample #22

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 3 commits into from
Jun 22, 2024
Merged

Add async sample #22

merged 3 commits into from
Jun 22, 2024

Conversation

ThorstenHans
Copy link
Contributor

This PR adds a sample that shows how users could use async capabilities using spin_executor

This commit adds an async example which leverages `spin_executor` to use the `send` function provided by `spin-sdk` for doing outbound HTTP

Signed-off-by: Thorsten Hans <[email protected]>
Copy link
Member

@radu-matei radu-matei left a comment

Choose a reason for hiding this comment

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

Thanks for the sample!
Could you please add a readme describing the goal of the sample, how it is different from just running a main function, and what happens when executing the sample?

Thanks!

@ThorstenHans
Copy link
Contributor Author

@radu-matei I've added a dedicated README at examples/async/README.md

Co-authored-by: Karthik Ganeshram <[email protected]>
Signed-off-by: Thorsten Hans <[email protected]>
@ThorstenHans ThorstenHans merged commit 39178ef into spinframework:main Jun 22, 2024
8 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.

3 participants