defmodule Foo do
@data %{:foo => "foo", :bar => "bar"}
def getData(), do: @data
end
spawn fn() ->
x = Foo.getData()
# Do something with x
:timer.sleep(100000)
end
spawn fn()->
x = Foo.getData()
# Do something with x
:timer.sleep(100000)
end%{:foo => "foo", :bar => "bar"}--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/8759b998-e32a-4b9e-9e23-ab8c213c4524%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4%2B_cr%3DqqL7A7RQE5nd-ebFORk_ocyGTT7FXrOwbXrN9bw%40mail.gmail.com.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/8759b998-e32a-4b9e-9e23-ab8c213c4524%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.