Skip to content

Instantly share code, notes, and snippets.

@sasa1977
Created January 14, 2014 21:39
Show Gist options
  • Save sasa1977/8426304 to your computer and use it in GitHub Desktop.
Save sasa1977/8426304 to your computer and use it in GitHub Desktop.
-module(an_actor).
-behaviour(gen_server).
-export([
start_link/0, sum/3,
init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3
]).
start_link() -> gen_server:start_link(?MODULE, [], []).
init(_) -> {ok, undefined}.
handle_call(_Request, _From, State) -> {reply, error, State}.
handle_cast(_Msg, State) -> {noreply, State}.
handle_info(_Info, State) -> {noreply, State}.
terminate(_Reason, _State) -> ok.
code_change(_OldVsn, State, _Extra) -> {ok, State}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment