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

Idiom # 30: Parallelize execution of 1000 independent tasks

See programming-idioms.org:

Code

Thread Concurrency in Fuzion is provided though the effect concur.thread. This effect provides an operation spawn that computes a function in parallel.

Running Example

Alternatively, we can use map: