fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

spawn

concur.Threads.spawn

spawn(code Function unit) => concur.Thread[Abstract feature][src]
spawn a new thread, teleporting the current effect environment to
the new thread.

This is to be used in environments where code interacts with data
shared with the current thread, e.g., mutable variables that where
created with a thread-safe mutate effect.

Arguments

code Function unit[src]
0.099dev (GIT hash 2afc453e6b9c6947b5a90cc7657cba97cfdd0320)
last changed: 2026-11-27