Returns a copy of the default options
the current default options
Sets the default options used whenever a parallel task is started
the default options. The options are merged with the existing default options. To unset a value, explicitly assign undefined (not allowed for the mandatory values threadPool and maxConcurrencyLevel).
the current default options
Creates a new parallel chain that transforms the given array. The elements processed are distributed onto different workers.
type of the array elements
the array with the elements
options options overriding the default options.
Creates an array containing the elements in the range from start (inclusive) to end (exclusive) with the step size of step.
the start of the range or the end, if the function is called with a single argument
the end of the range
the step size.
options configuring the computation behaviour
Runs the passed in function on an available worker. If no worker is available, then the function is queued until another task completes and therefore a worker is released.
the type of the result returned by the scheduled function
the function to execute on the worker. The function is executed in the context of a worker (no shared memory) and therefore as limited access to global variables and the dom.
the scheduled task.
type of the parameter passed to the function
sole parameter that is passed to the function
type of the first parameter
type of the second function parameter
the first parameter that is passed to the scheduled function
the second parameter that is passed to the scheduled function
type of the first parameter
type of the second function parameter
type of the third function parameter
the first parameter that is passed to the scheduled function
the second parameter that is passed to the scheduled function
the third parameter that is passed to the scheduled function
type of the first parameter
type of the second function parameter
type of the third function parameter
type of the fourth function parameter
the first parameter that is passed to the scheduled function
the second parameter that is passed to the scheduled function
the third parameter that is passed to the scheduled function
the fourth parameter that is passed to the scheduled function
type of the first parameter
type of the second function parameter
type of the third function parameter
type of the fourth function parameter
type of the fifth function parameter
the first parameter that is passed to the scheduled function
the second parameter that is passed to the scheduled function
the third parameter that is passed to the scheduled function
the fourth parameter that is passed to the scheduled function
the fifth parameter that is passed to the scheduled function
type of the first parameter
type of the second function parameter
type of the third function parameter
type of the fourth function parameter
type of the fifth function parameter
type of the sixth function parameter
the first parameter that is passed to the scheduled function
the second parameter that is passed to the scheduled function
the third parameter that is passed to the scheduled function
the fourth parameter that is passed to the scheduled function
the fifth parameter that is passed to the scheduled function
the sixth parameter that is passed to the scheduled function
type of the first parameter
type of the second function parameter
type of the third function parameter
type of the fourth function parameter
type of the fifth function parameter
type of the sixth function parameter
the first parameter that is passed to the scheduled function
the second parameter that is passed to the scheduled function
the third parameter that is passed to the scheduled function
the fourth parameter that is passed to the scheduled function
the fifth parameter that is passed to the scheduled function
the sixth parameter that is passed to the scheduled function
further params that are passed to the scheduled function
Schedules the function with the given id
the id of the function
the params to pass to the function
Creates a new array containing the given value n times.
type of the value
how many time should the value be repeated
the value to repeat
Creates a new array through calling the generator n times
type of the elements returned by the generator
how many elements should be created using the provided generator
the generator used to create the array elements
type of the environment
environment that is provided to the iteratee function
options configuring the computation behaviour
Generated using TypeDoc
Main facade used to start parallel tasks. Uses a chaining api. A new parallel task is created using a generator function like
from
,range
ortimes
. This returns an IParallelChain that is used to define the operations to perform on the elements. The parallel job is scheduled onto the thread pool as soon as a terminating function (IParallelChain.then, IParallelChain.catch, IParallelChain.subscribe or IParallelChain.reduce) is called.