annotate Implab/IResolvable`1.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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
246
5aa9cfbe56c3 missing files
cin
parents:
diff changeset
1 using System;
5aa9cfbe56c3 missing files
cin
parents:
diff changeset
2
5aa9cfbe56c3 missing files
cin
parents:
diff changeset
3 namespace Implab {
5aa9cfbe56c3 missing files
cin
parents:
diff changeset
4
247
fb70574741a1 working on promises
cin
parents: 246
diff changeset
5 public interface IResolvable<in T> {
246
5aa9cfbe56c3 missing files
cin
parents:
diff changeset
6 void Resolve(T value);
5aa9cfbe56c3 missing files
cin
parents:
diff changeset
7
5aa9cfbe56c3 missing files
cin
parents:
diff changeset
8 void Reject(Exception reason);
5aa9cfbe56c3 missing files
cin
parents:
diff changeset
9
5aa9cfbe56c3 missing files
cin
parents:
diff changeset
10 }
5aa9cfbe56c3 missing files
cin
parents:
diff changeset
11 }