gleam/otp/system

Functions

get_state

pub external fn get_state(from: Pid) -> Dynamic

Get the state of a given OTP compatible process. This function is only intended for debugging.

For more information see the Erlang documentation.

resume

pub fn resume(pid: Pid) -> Nil

Request a suspended OTP compatible process to result, causing it to handle all messages rather than only system messages.

For more information see the Erlang documentation.

suspend

pub fn suspend(pid: Pid) -> Nil

Request an OTP compatible process to suspend, causing it to only handle system messages.

For more information see the Erlang documentation.