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; }
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; }