Skip to content

add Send restriction to resource table#15

Open
k-43 wants to merge 1 commit intokajacx:masterfrom
k-43:send-table
Open

add Send restriction to resource table#15
k-43 wants to merge 1 commit intokajacx:masterfrom
k-43:send-table

Conversation

@k-43
Copy link
Copy Markdown

@k-43 k-43 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