comparison Implab/IPromiseT.cs @ 242:cbe10ac0731e v3

Working on promises
author cin
date Wed, 24 Jan 2018 03:03:21 +0300
parents 8c0b95069066
children fb70574741a1
comparison
equal deleted inserted replaced
240:fa6cbf4d8841 242:cbe10ac0731e
1 using System; 1 using System;
2 2
3 namespace Implab { 3 namespace Implab {
4 public interface IPromise<out T> : IPromise { 4 public interface IPromise<out T> : IPromise {
5 5
6 IPromise<T> On(Action<T> success, Action<Exception> error, Action<Exception> cancel); 6 void On(Action<T> success, Action<Exception> error);
7
8 IPromise<T> On(Action<T> success, Action<Exception> error);
9
10 IPromise<T> On(Action<T> success);
11 7
12 new T Join(); 8 new T Join();
13 9
14 new T Join(int timeout); 10 new T Join(int timeout);
15
16 new IPromise<T> On(Action success, Action<Exception> error, Action<Exception> cancel);
17
18 new IPromise<T> On(Action success, Action<Exception> error);
19
20 new IPromise<T> On(Action success);
21
22 new IPromise<T> On(Action handler, PromiseEventType events);
23
24 } 11 }
25 } 12 }