spectator

Functions

pub fn main() -> Nil

Entrypoint for running spectator from the command line. This will start the spectator application on port 3000 and never return.

pub fn start() -> Result(Pid, Dynamic)

Start the spectator application on port 3000

pub fn start_on(port: Int) -> Result(Pid, Dynamic)
pub fn tag(pid: Pid, name: String) -> Pid

Tag a process given by PID with a name for easier identification in the spectator UI. You must call start before calling this function.

pub fn tag_result(
  result: Result(Subject(a), b),
  name: String,
) -> Result(Subject(a), b)

Tag a process given by subject result with a name for easier identification in the spectator UI. You must call start before calling this function.

pub fn tag_subject(
  subject sub: Subject(a),
  name name: String,
) -> Subject(a)

Tag a process given by subject with a name for easier identification in the spectator UI. You must call start before calling this function.

Search Document