Concurrency Syntax Flashcards
1
Q
spawn a process
A
spawn fn -> 1 + 2 end
spawn/1 takes a function which it will execute in another process.
https://elixir-lang.org/getting-started/processes.html#spawn
Elixir Programming Language Related Syntax > Concurrency Syntax > Flashcards
spawn a process
spawn fn -> 1 + 2 end
spawn/1 takes a function which it will execute in another process.
https://elixir-lang.org/getting-started/processes.html#spawn