`after` isn't just for `try`
See: https://hexdocs.pm/elixir/try-catch-and-rescue.html#after
Real life example: https://github.com/ash-project/ash_postgres/blob/main/lib/migration_compile_cache.ex#L28-L40
GitHub
ash_postgres/lib/migration_compile_cache.ex at main · ash-project/...
The PostgreSQL data layer for Ash Framework. Contribute to ash-project/ash_postgres development by creating an account on GitHub.
3 Replies
Technically it is just for try
def
just has an implicit tryTechnically, but not syntactically. 😛
after is for def too 🤓