Skip to content

An Elixir GenServer mockup.

Notifications You must be signed in to change notification settings

satom99/ex_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Server

An Elixir GenServer mockup.

defmodule Test do
  use Server

  def start_link do
    Server.start_link __MODULE__, :state
  end

  def handle_cast(data, state) do
    IO.inspect {:cast, data}
    {:noreply, state}
  end

  def handle_call(data, from, state) do
    IO.inspect {:call, data, from}
    {:reply, :replied!, state}
  end

  def handle_info(event, state) do
    IO.inspect {:info, event}
    {:noreply, state}
  end
end

About

An Elixir GenServer mockup.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages