RaftedValue.CommandResults (rafted_value v0.12.0)

Copy Markdown View Source

Summary

Types

cmd_id()

@type cmd_id() :: RaftedValue.command_identifier()

t()

@type t() :: {:queue.queue(cmd_id()), %{required(cmd_id()) => any()}}

Functions

fetch(arg0, cmd_id)

@spec fetch(t(), cmd_id()) :: {:ok, any()} | :error

new()

@spec new() :: t()

put(arg0, cmd_id, result, max_size)

@spec put(
  t(),
  cmd_id(),
  any(),
  pos_integer()
) :: t()

valid?(v)

@spec valid?(any()) :: boolean()