# `PtcRunner.Lisp.Eval.ParallelRunner.Envelope`
[🔗](https://github.com/andreasronge/ptc_runner/blob/main/lib/ptc_runner/lisp/eval/parallel_runner/envelope.ex#L1)

One indexed result returned by `PtcRunner.Lisp.Eval.ParallelRunner`.

Worker callbacks construct an unindexed envelope. The runner overwrites the
index from its own scheduling state before the envelope crosses the worker
boundary, making that index authoritative for ordering and failure reports.

# `outcome`

```elixir
@type outcome() :: {:ok, term()} | {:error, term()}
```

# `t`

```elixir
@type t() :: %PtcRunner.Lisp.Eval.ParallelRunner.Envelope{
  child_step: term() | nil,
  child_trace_id: term() | nil,
  effects: PtcRunner.Lisp.Eval.Effects.t(),
  index: non_neg_integer() | nil,
  outcome: outcome()
}
```

# `failure`

```elixir
@spec failure(
  term(),
  keyword()
) :: t()
```

# `success`

```elixir
@spec success(
  term(),
  keyword()
) :: t()
```

# `success?`

```elixir
@spec success?(t()) :: boolean()
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
