Narra

Reference

std/parallel

std/parallel

Run a function over an array on several threads.

narra
import * as Parallel from "std/parallel"

The guide teaches it in chapter 15, Threads and shared state.

This page is generated by scripts/std/generate.nra from narrac query --json interface std/parallel. Do not edit it.

Functions

map

narra
export function map<T, U, effect E>(items: Array<T>, escaping change: (T) => U uses E): Array<U> uses E, alloc

Effects: E, alloc.