Docs coming soon. Here is an example:
flow = require "flowchain"processImage = flowsyncgetLocationnull"location"asyncfsstat"location""stat"syncisFileasyncgetDims"location""dims"asyncsaveprocessImagerunMany photos->consolelog "Completed"
sync = (task, input, output)
The sync method adds a synchronous task to the object.
input is defined, then it is used as a key to the memo object to get the data to pass into the task.
output is defined, then it is used as a key on the memo object to store the output of the function
async works in the same way, but accepts asynchronous functions.
output is defined then the 2nd argument passed to the callback function will be saved.