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