예제 #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;
        }
예제 #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;
        }
예제 #3
0
 public BoundIntervalHandle(IPromiseIntervalBase owner)
 {
     this._owner = owner;
 }