Money.ExchangeRates.Supervisor (Money v6.2.1)

Copy Markdown View Source
This module is deprecated. Add `Money.ExchangeRates.Retriever` to your supervision tree directly.

Supervises the exchange rates retrieval service.

Deprecated

Add Money.ExchangeRates.Retriever directly to your application's supervision tree instead:

children = [
  Money.ExchangeRates.Retriever
]

If your callback module depends on other applications being started first, position Money.ExchangeRates.Retriever after those dependencies in the children list.

Summary

Functions

Returns a specification to start this module under a supervisor.

delete_retriever() deprecated
restart_retriever() deprecated
retriever_status() deprecated
start_link(options) deprecated
stop_retriever() deprecated

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

delete_retriever()

This function is deprecated. Migrate to managing `Money.ExchangeRates.Retriever` in your own supervision tree, then use your supervisor's `delete_child/2`.
@spec delete_retriever() :: :ok | {:error, :not_found | :restarting | :running}

restart_retriever()

This function is deprecated. Migrate to managing `Money.ExchangeRates.Retriever` in your own supervision tree, then use your supervisor's `restart_child/2`.
@spec restart_retriever() ::
  {:ok, pid() | :undefined}
  | {:ok, pid() | :undefined, term()}
  | {:error, term()}

retriever_running?()

This function is deprecated. Use `Process.whereis(Money.ExchangeRates.Retriever)` directly.
@spec retriever_running?() :: boolean()

retriever_status()

This function is deprecated. Use `Process.whereis(Money.ExchangeRates.Retriever)` to check if the retriever is running.
@spec retriever_status() :: :running | :stopped | :not_started

start_link(options)

This function is deprecated. Add `Money.ExchangeRates.Retriever` to your supervision tree directly.
@spec start_link(Keyword.t()) :: Supervisor.on_start()

start_retriever(config \\ Money.ExchangeRates.config())

This function is deprecated. Add `Money.ExchangeRates.Retriever` to your supervision tree directly.

stop(supervisor \\ default_supervisor())

This function is deprecated. Manage `Money.ExchangeRates.Retriever` directly in your supervision tree.
@spec stop(Supervisor.supervisor()) :: :ok | {:error, :not_found}

stop_retriever()

This function is deprecated. Migrate to managing `Money.ExchangeRates.Retriever` in your own supervision tree, then use your supervisor's `terminate_child/2`.
@spec stop_retriever() :: :ok | {:error, :not_found}