Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Erlang workshop code from 2013-11-21 see http://hsbp.org/erlang#Workshop

View gist:9505053
1 2 3 4 5 6 7 8 9 10
-module(teszt).
-export([init/1, handle_call/3, q/1, init/0]).
-behaviour(gen_server).
 
init() ->
gen_server:start_link(?MODULE, [], []).
 
q(Pid) -> gen_server:call(Pid, q).
init([]) -> {ok, 0}.
handle_call(q, _, N) -> {reply, N, N + 1}.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.