@@ -178,7 +178,7 namespace Implab { | |||||
178 |
|
178 | |||
179 | public Promise(IPromise parent) { |
|
179 | public Promise(IPromise parent) { | |
180 | if (parent != null) |
|
180 | if (parent != null) | |
181 |
Add |
|
181 | AddHandler( | |
182 | null, |
|
182 | null, | |
183 | null, |
|
183 | null, | |
184 | () => { |
|
184 | () => { | |
@@ -335,7 +335,7 namespace Implab { | |||||
335 | var medium = new Promise<T>(this); |
|
335 | var medium = new Promise<T>(this); | |
336 |
|
336 | |||
337 | AddMappers( |
|
337 | AddMappers( | |
338 |
|
|
338 | x => x, | |
339 | e => { |
|
339 | e => { | |
340 | error(e); |
|
340 | error(e); | |
341 | return default(T); |
|
341 | return default(T); | |
@@ -362,7 +362,7 namespace Implab { | |||||
362 |
|
362 | |||
363 | var medium = new Promise<T>(this); |
|
363 | var medium = new Promise<T>(this); | |
364 |
|
364 | |||
365 |
AddMappers( |
|
365 | AddMappers(x => x, handler, null, medium, true); | |
366 |
|
366 | |||
367 | return medium; |
|
367 | return medium; | |
368 | } |
|
368 | } |
General Comments 0
You need to be logged in to leave comments.
Login now