Mercurial > pub > ImplabNet
comparison Implab/Safe.cs @ 96:daffa72a1cec v2
Added the chaining method to the non-generic IPromise
author | cin |
---|---|
date | Thu, 30 Oct 2014 10:06:16 +0300 |
parents | 0141a165d032 |
children | 2573b562e328 |
comparison
equal
deleted
inserted
replaced
95:0141a165d032 | 96:daffa72a1cec |
---|---|
56 | 56 |
57 return p; | 57 return p; |
58 } | 58 } |
59 | 59 |
60 [DebuggerStepThrough] | 60 [DebuggerStepThrough] |
61 public static IPromise<T> InvokePromise<T>(Action action) { | 61 public static IPromise InvokePromise(Action action) { |
62 ArgumentNotNull(action, "action"); | 62 ArgumentNotNull(action, "action"); |
63 | 63 |
64 var p = new Promise<object>(); | 64 var p = new Promise<object>(); |
65 try { | 65 try { |
66 action(); | 66 action(); |