{"size": 740, "ext": "js", "max_stars_repo_path": "index.js", "max_stars_repo_name": "sarkiroka/acnsy", "max_stars_repo_stars_event_min_datetime": "2017-07-29T16:33:00.000Z", "max_stars_repo_stars_event_max_datetime": "2019-01-29T16:10:25.000Z", "max_issues_repo_path": "index.js", "max_issues_repo_name": "sarkiroka/acnsy", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "index.js", "max_forks_repo_name": "sarkiroka/acnsy", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 3, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 32.1739130435, "max_line_length": 93, "alphanum_fraction": 0.7378378378}
/**
 * végrehajtja a taszkokat a definiált soros-párhuzamos mód szerint, végül meghívja az end-et
 * @author sarkiroka
 */
var createInitialTask = require('./create-initial-task');
var convertTaskListToRunnable = require('./convert-task-list-to-runnable');
var ifTask = require('./if-task');
var eachTask = require('./each-task');

module.exports = function (initialArguments, tasks, end) {
	if (typeof initialArguments == 'function') {
		end = tasks;
		tasks = initialArguments;
		initialArguments = {};
	}
	var initialTask = createInitialTask(initialArguments);
	var runnable = convertTaskListToRunnable(initialTask, tasks, end);
	runnable();
};
module.exports.ifTask = ifTask;
module.exports.if = ifTask;
module.exports.each = eachTask;
