} else if (isPlainObject(taskFunctions)) {
let firstEntry = true
for (const [name, fn] of Object.entries(taskFunctions)) {
+ if (typeof name !== 'string') {
+ throw new TypeError(
+ 'A taskFunctions parameter object key is not a string'
+ )
+ }
if (typeof fn !== 'function') {
throw new TypeError(
'A taskFunctions parameter object value is not a function'
}
/**
- * Runs the given function synchronously.
+ * Runs the given task function synchronously.
*
* @param fn - Task function that will be executed.
* @param task - Input data for the task function.
}
/**
- * Runs the given function asynchronously.
+ * Runs the given task function asynchronously.
*
* @param fn - Task function that will be executed.
* @param task - Input data for the task function.