fnFlow
fnFlow copied to clipboard
Support Promises
It would be nice to create tasks that denote the function will return a promise.
flow.tasks = {
task: new Promise(fs.readFile, 'file_name')
}
It would also be nice for execute to return a promise.
flow.execute({
file_name: 'data1.txt'
}).then(doSomethingElse);