Result of a committed transaction.
succeeded—trueif the success branch ran,falseif the failure branch ran. Asucceeded: falseresult is not an error — it means the compares didn't hold.revision— cluster revision after the transaction (unchanged if no mutation occurred).responses— ordered list of operation responses from the executed branch.
Summary
Types
@type response() :: {:get, term(), %{kvs: [Concord.KV.Record.t()], count: non_neg_integer()}} | {:put, binary(), %{prev_kv: Concord.KV.Record.t() | nil}} | {:delete, term(), %{deleted: non_neg_integer(), prev_kvs: [Concord.KV.Record.t()]}} | {:touch, binary(), %{ttl: integer() | :not_found}}
@type t() :: %Concord.Txn.Result{ responses: [response()], revision: non_neg_integer(), succeeded: boolean() }