Last active
February 5, 2020 06:50
-
-
Save iantbutler01/ce32e1d49a55ce0226d0ffb8596bf76d 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
CrawlerExample.Queue do | |
use GenServer | |
#client | |
def start_link(opts \\ []) do | |
GenServer.start_link(__MODULE__, nil, opts) | |
end | |
#server | |
@impl true | |
def init(_init_arg) do | |
{:ok, :queue.new} | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment