Make a worker object given a definition and data

Description

The function makeWorker returns an object of the appropriate type based on a computation definition and sets the data for the object. The types of objects that can be created depend upon the available computations

Usage

1

Arguments

defn

the computation definition

data

the data for the computation

Value

a worker object of the appropriate class based on the definition

See Also

availableComputations

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.