| @@ -57,7 +57,7 namespace Implab | |||||
| 57 | } |
|
57 | } | |
| 58 |
|
58 | |||
| 59 | [DebuggerStepThrough] |
|
59 | [DebuggerStepThrough] | |
| 60 |
public static IPromise<T> |
|
60 | public static IPromise<T> WrapPromise<T>(Func<T> action) { | |
| 61 | ArgumentNotNull(action, "action"); |
|
61 | ArgumentNotNull(action, "action"); | |
| 62 |
|
62 | |||
| 63 | var p = new Promise<T>(); |
|
63 | var p = new Promise<T>(); | |
| @@ -71,7 +71,7 namespace Implab | |||||
| 71 | } |
|
71 | } | |
| 72 |
|
72 | |||
| 73 | [DebuggerStepThrough] |
|
73 | [DebuggerStepThrough] | |
| 74 |
public static IPromise |
|
74 | public static IPromise WrapPromise(Action action) { | |
| 75 | ArgumentNotNull(action, "action"); |
|
75 | ArgumentNotNull(action, "action"); | |
| 76 |
|
76 | |||
| 77 | var p = new Promise(); |
|
77 | var p = new Promise(); | |
General Comments 0
You need to be logged in to leave comments.
Login now
