Replies: 1 comment
-
Currently this is not possible with Wasmer's API, you need to use We are looking into ways to improve this in future versions of Wasmer. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Roughly, this is what I'm trying to achieve:
Unfortunately passed param (
Option<&'a SomeSingleThreadOnly>
) is something not easily controllable / or changable, and givenWasmerEnv
doesn't allow to set non-thread safety values to its environment there's no easy way to make compiler satisfied.Logically in our execution path we know all of wasm execution is sequential, and there's no paths can create race conditions, while it is not possible to tell wasmerEnv to treat so. Is there any recommended pattern to force escape constraints?
Beta Was this translation helpful? Give feedback.
All reactions