ExUnited v0.1.3 ExUnited.Spawn.State View Source

Represents the state of an ExUnited.Spawn instance. It stores:

  • :color_index - a cycling index used for allocating the output color of the next node to be spawned with 'verbose mode' enabled
  • :nodes - a map containing information about its spawned nodes

Link to this section Summary

Types

A struct that keeps information about a spawned node

t()

Link to this section Types

Link to this type

spawned_node()

View Source
spawned_node() :: %{node: node(), port: port(), color: binary() | nil}

A struct that keeps information about a spawned node:

  • :node - the node name of the spawned node
  • :port - the Port reference after having spawned the node
  • :color - the ANSI color code portion used when in 'verbose mode'
Link to this type

t()

View Source
t() :: %ExUnited.Spawn.State{
  color_index: integer(),
  nodes: %{node: spawned_node()}
}