Wasmex.StoreOrCaller (wasmex v0.8.0)

Either a Wasmex.Store or "Caller" for imported functions.

A Store is a collection of WASM instances and host-defined state, see Wasmex.Store. A Caller takes the place of a Store in imported function calls. If a Store is needed in Elixir-provided imported functions, always use the provided Caller because using the Store will cause a deadlock (the running WASM instance locks the Stores Mutex).

Link to this section Summary

Link to this section Types

@type t() :: %Wasmex.StoreOrCaller{reference: reference(), resource: binary()}