Insider.Scenario.Executor (Insider Lab v0.1.0)

Copy Markdown View Source

Fixed-capacity admission for supervised scenario runs.

cancel/1 stops future scenario work and asks the runner to perform its declared cleanup reset. It never represents cancellation as rollback.

Summary

Types

handle()

@type handle() :: %{pid: pid(), token: reference()}

Functions

await(arg1, timeout)

@spec await(handle(), timeout()) ::
  Insider.Protocol.Result.t() | {:error, Insider.Protocol.Error.t()}

cancel(arg1)

@spec cancel(handle()) :: :ok | {:error, Insider.Protocol.Error.t()}

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

run(executor, scenario, modules, options)

start_link(options)

@spec start_link(keyword()) :: Supervisor.on_start()

start_run(executor, scenario, modules, options)

@spec start_run(Supervisor.supervisor(), Insider.Scenario.t(), [module()], keyword()) ::
  {:ok, handle()} | {:error, Insider.Protocol.Error.t()}