Wasmex.Instance.call_exported_function

You're seeing just the function call_exported_function, go back to Wasmex.Instance module for more information.
Link to this function

call_exported_function(instance, name, params, from)

Specs

call_exported_function(t(), binary(), [any()], GenServer.from()) :: any()

Calls a function with the given name and params on the WebAssembly instance. This function assumes to be called within a GenServer context, it expects a from argument as given by handle_call etc.

The WebAssembly function will be invoked asynchronously in a new OS thread. The calling process will receive a {:returned_function_call, result, from} message once the execution finished. The result either is an {:error, reason} or {:ok, results} tuple with results containing a list of the results form the called WebAssembly function.

Calling call_exported_function usually returns an :ok atom but may throw a BadArg exception when given unexpected input data.