Anoma.Node.Transaction.Shard.Detail (Anoma v0.35.0)

Summary

Types

I represent the value of a Cell

t()

I represent the details of a Shard Cell

Types

slot()

@type slot() :: %{value: any()} | :empty | :reserved

I represent the value of a Cell

t()

@type t() :: %Anoma.Node.Transaction.Shard.Detail{
  cell: slot(),
  pending: nil | [GenServer.from()]
}

I represent the details of a Shard Cell

Functions

can_reserve?(arg1)

@spec can_reserve?(t()) :: boolean()

reserve(d)

@spec reserve(t()) :: t()

retract(d, pid)

@spec retract(t(), pid()) :: t()

unreserve(d)

@spec unreserve(t()) :: t()

write(d, val)

@spec write(t(), any()) :: {:ok, t()} | {:error, atom()}