View Source t___app (t__ v0.1.0)

Link to this section Summary

Functions

This function is called whenever an application is started using start/1,2, and is to start the processes of the application. If the application is structured according to the OTP design principles as a supervision tree, this means starting the top supervisor of the tree.
This function is called whenever an application has stopped. It is intended to be the opposite of Module:start/2 and is to do any necessary cleaning up. The return value is ignored.

Link to this section Functions

Link to this function

start(StartType, StartArgs)

View Source
-spec start(StartType, StartArgs) -> {ok, Pid} | {ok, Pid, State} | {error, Reason}
         when
             StartType :: application:start_type(),
             StartArgs :: term(),
             Pid :: pid(),
             State :: term(),
             Reason :: term().
This function is called whenever an application is started using start/1,2, and is to start the processes of the application. If the application is structured according to the OTP design principles as a supervision tree, this means starting the top supervisor of the tree.
-spec stop(State) -> Ignored when State :: term(), Ignored :: term().
This function is called whenever an application has stopped. It is intended to be the opposite of Module:start/2 and is to do any necessary cleaning up. The return value is ignored.