Runbox.RunStartContext (runbox v26.0.0)

View Source

Structure holding context of starting run.

This structure is passed as param to every run component start.

Summary

Types

t()

Currently context holds only mapping of names to pids of already started components.

Functions

Adds pid of component identified by name to context.

Returns pid of component identitfied by name.

Types

t()

@type t() :: %Runbox.RunStartContext{components_pids: %{required(term()) => pid()}}

Currently context holds only mapping of names to pids of already started components.

Functions

add_component(ctx, name, pid)

@spec add_component(t(), term(), pid()) :: t()

Adds pid of component identified by name to context.

component_pid(ctx, name)

@spec component_pid(t(), term()) :: pid()

Returns pid of component identitfied by name.