Created
February 2, 2015 09:53
-
-
Save termoose/3746818442578265f47d to your computer and use it in GitHub Desktop.
This file contains 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
# Deleter.ex | |
defmodule Ekko.Deleter do | |
use GenServer | |
def start_link() do | |
GenServer.start_link(__MODULE__, [], name: Deleter) | |
end | |
def handle_call(:delete, from) do | |
IO.puts "handle_call in Deleter called" | |
{:noreply, from} | |
end | |
end | |
# test_controller.ex | |
GenServer.call(Deleter, :delete) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the error message:
** (exit) exited in: GenServer.call(Deleter, :delete, 5000)
** (EXIT) bad call: :delete