comparison Implab/IPromiseT.cs @ 247:fb70574741a1 v3

working on promises
author cin
date Fri, 26 Jan 2018 18:46:27 +0300
parents cbe10ac0731e
children
comparison
equal deleted inserted replaced
246:5aa9cfbe56c3 247:fb70574741a1
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 void On(Action<T> success, Action<Exception> error); 6 void Then(IResolvable<T> next);
7 7
8 new T Join(); 8 new T Join();
9 9
10 new T Join(int timeout); 10 new T Join(int timeout);
11 } 11 }