var f_ = require('../index.js');

var TaskList = require('./TaskList');

var f_config = {
	functionFlow: ['getSource', 'writeSource', 'notify'],  // REQUIRED
	resetOnRetryAll: true,

	toLog: ['all'],

	desc: 'Test taskList',

	maxRetries: {
		all: 2
	}
};

TaskList = f_.augment(TaskList, f_config);

var runSingle = function (){
	var taskListInstance = new TaskList();
	taskListInstance = f_.setup(taskListInstance);

	taskListInstance.start();
}();

var runMultiple = function (){
	var startTime = Date.now(); 

	for(var i=0; i<10000; i+=1){
		var taskListInstance = new TaskList();
		taskListInstance = f_.setup(taskListInstance);

		taskListInstance.f_desc = taskListInstance.f_desc + ' #' + i;

		taskListInstance.start();
	}
	var endTime = Date.now(),
			timeTaken = endTime - startTime;

	console.log(timeTaken);
};

@@ -82,16 +82,162 @@
 nfig = %7B
+%0A%0A%09/**%0A%09 * %60start%60 method is not given here, since we call it manualy%0A%09 * This is just a matter of personal taste, I do not like auto starts!%0A%09 */
 %0A%09functi

Comment about start method not being present in functionFlow