Plexus.Actor.Command (Plexus v0.1.0)

Copy Markdown View Source

Declarative effects emitted by semantic actors.

Effects pass through Plexus.Actor.Interpreter, which is the single seam for admission, batching, scheduling, topology, pruning and run recording.

Summary

Types

t()

@type t() ::
  {:spawn, atom(), module(), map(), keyword()}
  | {:edge, atom(), term(), term(), number()}
  | {:edge, atom(), term(), term(), number(), term()}
  | {:send, term(), term()}
  | {:measure, term(), term(), term(), keyword()}
  | {:expand, term(), term(), keyword()}
  | {:belief, term()}
  | {:budget, :reserve | :refund, :measure | :expand | :tokens | :population,
     non_neg_integer()}
  | {:population, tuple()}
  | {:credits, :grant | :reserve | :refund | :transfer | :close, list()}
  | {:prune, term()}
  | {:sleep, timeout()}
  | {:wake_on, term()}
  | {:complete, term()}