View Source shards_partition (shards v1.1.1)
Partition Owner.
The partition owner is agen_server
that creates and holds the ETS table associated with the partition.
Summary
Functions
Equivalent to stop(Server, 5000).
Functions
-spec compute(Key :: term(), Meta :: shards_meta:t()) -> non_neg_integer().
-spec pid(Tab :: shards:tab(), Partition :: non_neg_integer()) -> pid().
Equivalent to stop(Server, 5000).
-spec tid(Tab :: shards:tab(), Partition :: non_neg_integer()) -> ets:tid().
-spec tid(Tab :: shards:tab(), Key :: term(), Meta :: shards_meta:t()) -> ets:tid().