Skip to content

Commit

Permalink
cleanup docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Rychlewski authored and Greg Rychlewski committed Oct 14, 2023
1 parent 36a03f3 commit f1c09a8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/db_connection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -354,11 +354,11 @@ defmodule DBConnection do
processing a request, the last known state will be sent and the exception
will be a `DBConnection.ConnectionError`.
If the `disconnect_on_terminate` option is set to `true`, the last known
state will be sent and the exception will be a `DBConnection.ConnectionError`
containing the reason for the exit. This callback will be called from
`terminate/3` and it will only happen if the connection was not previously
disconnected. For example, using `disconnect_all/3.
If the connect option `disconnect_on_terminate` is set to `true`, the last
known state will be sent and the exception will be a `DBConnection.ConnectionError`
containing the reason for the exit. This callback will be called from `terminate/3`
and it will only happen if the connection was not previously disconnected.
For example, using `disconnect_all/3.
"""
@callback disconnect(err :: Exception.t(), state :: any) :: :ok
Expand Down

0 comments on commit f1c09a8

Please sign in to comment.