View Source Runbox.RunStartContext (runbox v21.2.0)

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

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

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

Functions

Link to this function

add_component(ctx, name, pid)

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

Adds pid of component identified by name to context.

Link to this function

component_pid(ctx, name)

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

Returns pid of component identitfied by name.