Skip to content
FutureBlitz

    Install

    Import std.concurrent.parallel

    ParallelMap

    std.concurrent.parallel

    function

    Public Function ParallelMap<T, R>(items: T[], change: Sendable Func(T): R): R[]

    A new array of what change makes of each item, in the items' order, made on the pool at once.

    Examples

    Expect(ParallelMap([1, 2, 3], Function(n: Int) => n * n) == [1, 4, 9])

    std/concurrent/parallel.fb, line 47

    Report an issue with this page or with FutureBlitz on GitHub.