Mercurial > pub > ImplabNet
comparison Implab/FuncChainTask.cs @ 244:eee3e49dd1ff v3
working on promises
author | cin |
---|---|
date | Thu, 25 Jan 2018 19:09:16 +0300 |
parents | 40d7fed4a09e |
children |
comparison
equal
deleted
inserted
replaced
243:b1e0ffdf3451 | 244:eee3e49dd1ff |
---|---|
1 using System; | 1 using System; |
2 | 2 |
3 namespace Implab { | 3 namespace Implab { |
4 public class FuncChainTask<TResult> : FuncChainTaskBase<TResult>, IDeferred { | 4 public class FuncChainTask<TResult> : FuncChainTaskBase<TResult>, IResolvable { |
5 readonly Func<IPromise<TResult>> m_task; | 5 readonly Func<IPromise<TResult>> m_task; |
6 | 6 |
7 public FuncChainTask(Func<IPromise<TResult>> task, Func<Exception, IPromise<TResult>> error, Func<Exception, IPromise<TResult>> cancel, bool autoCancellable) | 7 public FuncChainTask(Func<IPromise<TResult>> task, Func<Exception, IPromise<TResult>> error, Func<Exception, IPromise<TResult>> cancel, bool autoCancellable) |
8 : base(error, cancel, autoCancellable) { | 8 : base(error, cancel, autoCancellable) { |
9 m_task = task; | 9 m_task = task; |