public static QTask Create(Action callback, QTargetThread type, QTaskOption option = QTaskOption.None) { var task = new QTask(null, callback, type, option); return(task); }
private QTask(QTask parent, Action callback, QTargetThread type, QTaskOption option) { this.syncObject = new object(); this.parent = parent; this.callback = callback; this.chains = new List <QTask>(); this.type = type; this.option = option; }