The spawn
keyword creates a thread that begins execution at the function supplied as its operand. For example:
spawn func(1, 2);This statement starts a thread at the function named
func
and passes it two arguments. The current thread continues execution at the statement following the spawn
statement.