fnFlow icon indicating copy to clipboard operation
fnFlow copied to clipboard

Support Promises

Open dfenster opened this issue 11 years ago • 0 comments

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);

dfenster avatar Oct 14 '13 23:10 dfenster