Skip to content

Instantly share code, notes, and snippets.

@feymartynov
Created November 24, 2018 00:48
Show Gist options
  • Save feymartynov/7a66a2b1b2f149cbb02a205b1884f9a7 to your computer and use it in GitHub Desktop.
Save feymartynov/7a66a2b1b2f149cbb02a205b1884f9a7 to your computer and use it in GitHub Desktop.
ExOperation article: After commit example
operation
|> step(:foo, &foo/1)
|> after_commit(fn txn ->
run_some_async_job(txn.foo)
end)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment