Shardex.Batch (shardex v0.1.0)

Copy Markdown View Source

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.

Summary

Types

group()

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

t()

@type t() :: %Shardex.Batch{
  errors: [{term(), Shardex.reason()}],
  groups: %{required(atom()) => group()}
}