Mercurial > pub > ImplabNet
comparison Implab/PromiseExtensions.cs @ 259:7d52dc684bbd v3
PollingComponent: implemented correct stopping
author | cin |
---|---|
date | Fri, 13 Apr 2018 03:57:39 +0300 |
parents | d82909310094 |
children |
comparison
equal
deleted
inserted
replaced
258:d0876436d95d | 259:7d52dc684bbd |
---|---|
209 throw e.Rethrow(); | 209 throw e.Rethrow(); |
210 })); | 210 })); |
211 })); | 211 })); |
212 } | 212 } |
213 | 213 |
214 public static PromiseAwaiter GetAwaiter(this IPromise that) { | |
215 Safe.ArgumentNotNull(that, nameof(that)); | |
216 return new PromiseAwaiter(that); | |
217 } | |
218 | |
219 public static PromiseAwaiter<T> GetAwaiter<T>(this IPromise<T> that) { | |
220 Safe.ArgumentNotNull(that, nameof(that)); | |
221 return new PromiseAwaiter<T>(that); | |
222 } | |
214 | 223 |
215 } | 224 } |
216 } | 225 } |
217 | 226 |