Exemple #1
0
        public IntervalHandleImpl(PromiseFactory factory, int timeout, Func <IPromise> action, PromisePriority priority)
        {
            var x = new BackboneIntervalHandleImpl <IntervalHandleImpl>(this, factory, timeout, () => action().Then(() => (object)null), priority);

            x.Start();

            _base = x;
        }
Exemple #2
0
        public IntervalHandleImpl(PromiseFactory factory, int timeout, Action action, PromisePriority priority)
        {
            var x = new BackboneIntervalHandleImpl <IntervalHandleImpl>(this, factory, timeout, () =>
            {
                action();
                return(factory.Value <object>(null));
            }, priority);

            x.Start();

            _base = x;
        }