Spawning processes

A spawn expression is used to execute a function in a new concurrent "process".

Syntax

spawn_expression
spawn function_call_expression
Show source
spawn_expression
  = "spawn" function_call_expression

Example

(@ok, pid) := spawn foo("bar");

Semantics

A spawn expression MUST return a value of type (@ok, pid) or (@error, term).