Skip to contents

Executes a list of job specifications in parallel, applies the given function with error handling, and collects the results or error messages.

Usage

bg_func(jobs, n_daemons)

Arguments

jobs

A list of job specifications, each containing a function (fun) and arguments (args).

n_daemons

Number of parallel workers

Value

A list of results, with error messages in case of failure.