annotate Implab/IDeferredT.cs @ 240:fa6cbf4d8841 v3

refactoring, moving to dotnercore, simplifying promises
author cin
date Tue, 23 Jan 2018 19:39:21 +0300
parents 706fccb85524
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
119
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
1 using System;
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
2
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
3 namespace Implab {
240
fa6cbf4d8841 refactoring, moving to dotnercore, simplifying promises
cin
parents: 145
diff changeset
4 public interface IDeferred<in T> {
119
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
5 void Resolve(T value);
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
6
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
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
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
10 }
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
11 }
2573b562e328 Promises rewritten, added improved version of AsyncQueue
cin
parents:
diff changeset
12