Money.ExchangeRates.Supervisor.stop
stop
, go back to Money.ExchangeRates.Supervisor module for more information.
Stop the Money.ExchangeRates.Supervisor.
Unless ex_money
is configured in mix.exs
as
rumtime: false
, the Money.ExchangeRates.Supervisor
is always started when ex_money
starts even if the
config key :auto_start_exchange_rates_service
is
set to false
.
In some instances an application may require the
Money.ExchangeRates.Supervisor
to be started under
a different supervision tree. In this case it is
required to call this function first before a new
configuration is started.
One use case is when the Exchange Rates service is configured with either an API module, a Callback module or a Cache module which uses Ecto and therefore its a requirement that Ecto is started first.
See the README section on "Using Ecto or other applications from within the callback module" for an eanple of how to configure the supervisor in this case.