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 MyApp.Alexa do | |
| def call do | |
| # ... | |
| get_country_and_zip_code(device_id, consent_token) | |
| |> do_some_other_transformation | |
| # ... | |
| end | |
| defp get_country_and_zip_code(device_id, consent_token) do | |
| url = |
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
| defmodule Game do | |
| use GenServer | |
| def init(game_id) do | |
| {:ok, %{game_id: game_id}} | |
| end | |
| def start_link(game_id) do | |
| GenServer.start_link(__MODULE__, game_id, name: {:global, "game:#{game_id}"}) | |
| end |
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 MyApp.MyModule do | |
| @my_collaborating_module Application.get_env(:my_app, :my_collaborating_module) | |
| def perform() do | |
| @my_collaborating_module.do_something() | |
| end | |
| end |
OlderNewer