Our pure JavaScript Scheduler component


Post by arcady »

Ah ..right you can use keyword yield only in a generator function. Then an alternative could be TaskModel class run method. It's not documented in our docs since it's implemented in the Chronograph (the framework the Engine is implemented with). The method's purpose is to call generators. It can be used like this:

const endDate = task.run('calculateProjectedXDateWithDuration', task.startDate, true, 4);

Post by burnit »

This works! Many thanks @arcady


Post Reply