![]() This is powerful mechanism for control execution flow.įor example register function which will send the result as the arguments to the next function. This callback will called after every function execution. For example we can add some functions to the queue after queue was done. This method doing the same constructor, but can be called in any time. The function's queue will cleared.įlow.obj - reference on current `SerialFlow` object.Ĭreate SerialFlow object: new SerialFlow(Īdd function(s) to the serial queue. Equal to flow() call.įlow.error(error) - generate error. The flow has next methods and variables: flow.next() - step to the next execution without error. It's compatible with standard javascript's callback, where first argument is error and next arguments are data: fs.readFile(path,flow) When the flow called the first argument is error object or message. args, last argument is object function flow. Constructor doing the same, and take the same arguments function add().Įvery function will be called with arguments setuped by function. It accepts any number of functions or array of functions as arguments and runs them in serial order. The constructor function creates new SerialFlow object. This function will be called after every execution. Serial Number: 3300ce7259e33a6309caca6e1b000000ce7259. #Setup arguments for functions kind of middlewares new SerialFlow() Free download links are directly from our mirrors or. #Generate and handle error asynchronous new SerialFlow()Ĭonsole.log("This function won't executed") Ĭonsole.log("Error " + error + " occurred") Using cracks, warez serial numbers, registration codes or keygens for DocsFlow license key is illegal. Serial write to file, read from this file, remove file with error handling: new SerialFlow(įs.writeFile(filePath,'test data string',flow) Or you can clone this repository using the git command: git clone git:///JSBizon/node-serialflow.git If you have npm installed, you can simply type: npm install serialflow This library allow create middleware layer how it doing connect.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |