Skip to content

Instantly share code, notes, and snippets.

@anagromataf
Created December 20, 2018 14:30
Show Gist options
  • Save anagromataf/785586ec9655132d3ff68be0f63f198c to your computer and use it in GitHub Desktop.
Save anagromataf/785586ec9655132d3ff68be0f63f198c to your computer and use it in GitHub Desktop.
defmodule Store do
@callback prepare(ref(), revision(), module(), transaction()) ::
{:ok, transaction_ref()}
| on_error()
@callback commit(ref(), transaction_ref(), state()) ::
{:ok, revision()}
| on_error()
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment