##// END OF EJS Templates
working on promises
cin -
r245:b904e0a3ba72 v3
parent child
Show More
@@ -36,9 +36,9 namespace Implab {
36
36
37 else if (m_dispatcher != null)
37 else if (m_dispatcher != null)
38 // dispatch (see ecma-262/6.0: 25.4.1.3.2 Promise Resolve Functions)
38 // dispatch (see ecma-262/6.0: 25.4.1.3.2 Promise Resolve Functions)
39 m_dispatcher.Enqueue(() => thenable.Then(this));
39 m_dispatcher.Enqueue(() => Chain(thenable));
40 else
40 else
41 thenable.Then(this);
41 Chain(thenable);
42 }
42 }
43
43
44 void Chain(IPromise thenable) {
44 void Chain(IPromise thenable) {
@@ -8,8 +8,6 namespace Implab {
8
8
9 void Resolve();
9 void Resolve();
10
10
11 void Resolve(IPromise thenable);
12
13 /// <summary>
11 /// <summary>
14 /// Reject the promise with the specified error.
12 /// Reject the promise with the specified error.
15 /// </summary>
13 /// </summary>
General Comments 3
Under Review
author

Auto status change to "Under Review"

Approved
author

ok, latest stable version should be in default

You need to be logged in to leave comments. Login now