Mercurial > pub > ImplabNet
annotate Implab/IDeferredT.cs @ 247:fb70574741a1 v3
working on promises
author | cin |
---|---|
date | Fri, 26 Jan 2018 18:46:27 +0300 |
parents | fa6cbf4d8841 |
children |
rev | line source |
---|---|
119 | 1 using System; |
2 | |
3 namespace Implab { | |
240
fa6cbf4d8841
refactoring, moving to dotnercore, simplifying promises
cin
parents:
145
diff
changeset
|
4 public interface IDeferred<in T> { |
119 | 5 void Resolve(T value); |
6 | |
7 void Reject(Exception error); | |
240
fa6cbf4d8841
refactoring, moving to dotnercore, simplifying promises
cin
parents:
145
diff
changeset
|
8 |
fa6cbf4d8841
refactoring, moving to dotnercore, simplifying promises
cin
parents:
145
diff
changeset
|
9 void SetCancelled(Exception error); |
119 | 10 } |
11 } | |
12 |