Fast.Application.Ready (Fast v0.11.0)
View SourceThis is a super simple process that will set an env value when started (e.g. as the last process in your application supervision tree) to indicate the application is ready for traffic.
Put this as the last process in application.ex.
See also: Fast.Plug.Ready
Example usage:
defmodule MyApp.Application do
use Application
def start(_type, _args) do
children = [
...
] ++ [{Fast.Application.Ready, otp_app: :my_app}]
opts = [strategy: :one_for_one, name: MyApp.Supervisor]
Supervisor.start_link(children, opts)
end
end
Summary
Functions
Returns a specification to start this module under a supervisor.
Callback implementation for GenServer.init/1.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Callback implementation for GenServer.init/1.