Last active
May 17, 2017 13:27
-
-
Save nsomar/7cfb580ca7e1ba94b9372a6366708e1f 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
defmodule Website do | |
def index(conn, content) do | |
# some calculations | |
Utilities.write(content, "/etc/some/secret/location") | |
# Receving the sent message | |
receive do | |
result -> # use the result | |
end | |
json(conn, %{"result" => "success"}) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment