Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
-module(mymodule).
start_link() ->
gen_server:start_link({local, ?MODULE}, ?MODULE, [], []).
...
crash() ->
gen_server:cast(?MODULE, crash).
...
handle_cast(crash,State) ->
{stop, error, State};
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment