Пример #1
0
        public static QTask Create(Action callback,
                                   QTargetThread type,
                                   QTaskOption option = QTaskOption.None)
        {
            var task = new QTask(null, callback, type, option);

            return(task);
        }
Пример #2
0
        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;
        }