comparison 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
comparison
equal deleted inserted replaced
239:eedf4d834e67 240:fa6cbf4d8841
1 using System; 1 using System;
2 2
3 namespace Implab { 3 namespace Implab {
4 public interface IDeferred<in T> : ICancellationToken { 4 public interface IDeferred<in T> {
5 void Resolve(T value); 5 void Resolve(T value);
6 6
7 void Reject(Exception error); 7 void Reject(Exception error);
8
9 void SetCancelled(Exception error);
8 } 10 }
9 } 11 }
10 12