Sha256: 7b63ed953fd21951668b34704bb3a645b4c32773625d3e9ba42340aad70b4530
Contents?: true
Size: 1.85 KB
Versions: 28
Compression:
Stored size: 1.85 KB
Contents
%%%------------------------------------------------------------------- %%% File: thrift_app.erl %%% @author Cliff Moon <> [] %%% @copyright 2009 Cliff Moon %%% @doc %%% %%% @end %%% %%% @since 2009-04-04 by Cliff Moon %%%------------------------------------------------------------------- -module(thrift_app). -author(''). -behaviour(application). %% Application callbacks -export([start/2, stop/1]). %%==================================================================== %% Application callbacks %%==================================================================== %%-------------------------------------------------------------------- %% @spec start(Type, StartArgs) -> {ok, Pid} | %% {ok, Pid, State} | %% {error, Reason} %% @doc This function is called whenever an application %% is started using application:start/1,2, and should 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. %% @end %%-------------------------------------------------------------------- start(_Type, StartArgs) -> case thrift_sup:start_link() of {ok, Pid} -> {ok, Pid}; Error -> Error end. %%-------------------------------------------------------------------- %% @spec stop(State) -> void() %% @doc This function is called whenever an application %% has stopped. It is intended to be the opposite of Module:start/2 and %% should do any necessary cleaning up. The return value is ignored. %% @end %%-------------------------------------------------------------------- stop(_State) -> ok. %%==================================================================== %% Internal functions %%====================================================================
Version data entries
28 entries across 28 versions & 3 rubygems