Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
pool
.execute(workerData)
.then(() => {
pool
.execute(workerData)
.then(() => {
if (executions === tasks) {
return resolve({ ok: 1 })
}
if (executions === tasks) {
return resolve({ ok: 1 })
}
static factorial (n) {
if (n === 0) {
return 1
static factorial (n) {
if (n === 0) {
return 1
- } else {
- return TestUtils.factorial(n - 1) * n
+ return TestUtils.factorial(n - 1) * n
}
static executeWorkerFunction (data) {
}
static executeWorkerFunction (data) {