Skip to content

Instantly share code, notes, and snippets.

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