Skip to content

Instantly share code, notes, and snippets.

@knewter
Created August 18, 2013 01:27
Show Gist options
  • Save knewter/6259478 to your computer and use it in GitHub Desktop.
Save knewter/6259478 to your computer and use it in GitHub Desktop.
Eshell V5.10.2 (abort with ^G)
1> c(chatserver).
chatserver.erl:2: Warning: undefined callback function handle_cast/2 (behaviour 'gen_server')
chatserver.erl:18: Warning: variable 'From' is unused
chatserver.erl:18: Warning: variable 'State' is unused
chatserver.erl:18: Warning: variable 'Username' is unused
chatserver.erl:20: Warning: variable 'From' is unused
chatserver.erl:22: Warning: variable 'From' is unused
chatserver.erl:22: Warning: variable 'S' is unused
chatserver.erl:29: Warning: variable 'State' is unused
{ok,chatserver}
2> rr(chatserver).
[state,user]
3> {ok, Pid} = chatserver:start_link().
{ok,<0.46.0>}
9> chatserver:join(self(), "knewter").
** exception exit: {timeout,{gen_server,call,[<0.52.0>,{join,"knewter"}]}}
in function gen_server:call/2 (gen_server.erl, line 180)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment