Skip to content

add Send restriction to resource table - #15

Open
m11m wants to merge 1 commit into
kajacx:masterfrom
m11m:send-table
Open

add Send restriction to resource table#15
m11m wants to merge 1 commit into
kajacx:masterfrom
m11m:send-table

Conversation

@m11m

@m11m m11m commented Jun 17, 2024

Copy link
Copy Markdown

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