# HG changeset patch # User cin # Date 2018-01-26 01:13:34 # Node ID b904e0a3ba72e62c1ad4d493c6b9bc986cbf69fd # Parent eee3e49dd1ff5124cded2637ae947b669b357c48 working on promises diff --git a/Implab/Deferred.cs b/Implab/Deferred.cs --- a/Implab/Deferred.cs +++ b/Implab/Deferred.cs @@ -36,9 +36,9 @@ namespace Implab { else if (m_dispatcher != null) // dispatch (see ecma-262/6.0: 25.4.1.3.2 Promise Resolve Functions) - m_dispatcher.Enqueue(() => thenable.Then(this)); + m_dispatcher.Enqueue(() => Chain(thenable)); else - thenable.Then(this); + Chain(thenable); } void Chain(IPromise thenable) { diff --git a/Implab/IResolvable.cs b/Implab/IResolvable.cs --- a/Implab/IResolvable.cs +++ b/Implab/IResolvable.cs @@ -8,8 +8,6 @@ namespace Implab { void Resolve(); - void Resolve(IPromise thenable); - /// /// Reject the promise with the specified error. ///