Skip to content

Instantly share code, notes, and snippets.

@alexblackie
Last active August 29, 2015 14:26
Show Gist options
  • Save alexblackie/9ca631357014672394a6 to your computer and use it in GitHub Desktop.
Save alexblackie/9ca631357014672394a6 to your computer and use it in GitHub Desktop.
-module(example_gs).
-behaviour(gen_server).
-export([start_link/0, init/1]).
-export([handle_call/3, handle_cast/2, handle_info/2]).
-export([code_change/3, terminate/2]).
start_link() ->
gen_server:start_link(?MODULE, [], []).
init(Args) ->
{ok, Args}.
handle_call(_Req, _From, State) ->
{noreply, State}.
handle_cast(_Req, State) ->
{noreply, State}.
handle_info(_Info, State) ->
{ok, State}.
code_change(_OldVsn, State, _Extra) ->
{ok, State}.
terminate(_Reason, _State) ->
ok.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment