Skip to content

Commit

Permalink
docs: add dsl extension docs link
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Oct 15, 2020
1 parent eb25d5b commit ca8b0d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions documentation/topics/notifiers.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
A notifier is a simple extension that must implement a single callback `notify/1`. Notifiers do not have to implement an Ash DSL extension, but they may in order to configure how that notifier should behave. See `Ash.Notifier.Notification` for the currently available fields. Notifiers should not do anything intensive synchronously. If any heavy work needs to be done, they should delegate to something else to handle the notification, like sending it to a GenServer or GenStage.
Eventually, there will likely be built in notifiers that will make setting up an GenStage that reacts to your resource changes easy. Until then, you'll have to write your own.

For more information on creating a DSL extension to configure your notifier, see the docs for `Ash.Dsl.Extension`.

### Example notifier

```elixir
Expand Down

0 comments on commit ca8b0d1

Please sign in to comment.