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

add Send restriction to resource table #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kayhhh
Copy link

@kayhhh kayhhh commented Jun 17, 2024

Hello I am back with more Send confusion :p

When calling async functions from the host using .call_myfn(store).await, it is required that the store's data is Send. Keeping a ResourceTable inside of the store's data seems like the most common use case for it, so I changed the dyn Any to dyn Any + Send to allow this.

Looking at the tests it seems this was missed, as the tests with ResourceTable use a synchronous .call, not async.

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.

1 participant