- data.function = data.function || WorkerFunctions.jsonIntegerSerialization
- const res = executeWorkerFunction(data)
- debug === true && console.debug('This is the main thread ' + isMaster)
+ data.function = data.function || TaskFunctions.jsonIntegerSerialization
+ const res = executeTaskFunction(data)
+ debug === true && console.debug(`This is the main thread ${isPrimary}`)