-
-
Save miguelarauj1o/23e1b0bb03022651070e02506d571125 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-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