Mercurial > pub > ImplabNet
annotate Implab/IPromiseT.cs @ 248:5cb4826c2c2a v3
Added awaiters to promises
Added static methods to Promise Resolve, Reject, All.
Updated promise helpers
author | cin |
---|---|
date | Tue, 30 Jan 2018 01:37:17 +0300 |
parents | fb70574741a1 |
children |
rev | line source |
---|---|
66 | 1 using System; |
2 | |
75 | 3 namespace Implab { |
119
2573b562e328
Promises rewritten, added improved version of AsyncQueue
cin
parents:
106
diff
changeset
|
4 public interface IPromise<out T> : IPromise { |
66 | 5 |
247 | 6 void Then(IResolvable<T> next); |
76 | 7 |
144 | 8 new T Join(); |
9 | |
10 new T Join(int timeout); | |
66 | 11 } |
12 } |