RustlerElixirFun.Internal (rustler_elixir_fun v0.4.0)

Copy Markdown

Summary

Functions

apply_elixir_fun(pid_or_name, fun, parameters)

Calls the Rust NIF directly.

This is mainly useful to simplify testing; in your actual projects, you'll want to call the Rust function directly from your Rust code.

apply_elixir_fun_timeout(pid_or_name, fun, parameters, timeout_milliseconds)

Calls the Rust NIF directly.

This is mainly useful to simplify testing; in your actual projects, you'll want to call the Rust function directly from your Rust code.

This variant allows customizing the maximum time we wait for the function to return (to prevent any deadlocks).