Created
February 22, 2021 17:27
-
-
Save martincabrera/a767906925da0c07009bb288838a2efc to your computer and use it in GitHub Desktop.
Elixir PythonWorker handle_call function
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
def handle_call({:optimize, json_input}, _from, pid) do | |
result = :python.call(pid, :optimize, :optimize, [json_input]) | |
{:reply, {:ok, result}, pid} | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment