# `Shardex.Batch`
[🔗](https://github.com/epinault/shardex/blob/v0.1.0/lib/shardex/batch.ex#L1)

Result of `Shardex.group/4`: items grouped by shard, plus every item that
could not be routed with its reason. Items keep their input order.

# `group`

```elixir
@type group() :: %{shard: Shardex.Shard.t(), pool: Shardex.Pool.t(), items: [term()]}
```

# `t`

```elixir
@type t() :: %Shardex.Batch{
  errors: [{term(), Shardex.reason()}],
  groups: %{required(atom()) =&gt; group()}
}
```

---

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