Example #1
0
 public static IPromise <int> Count <T>(IPromiseEnumerator <T> items, Func <T, int, IPromise <bool> > filter)
 {
     return(LongCountAlgorithm.LongCount(items, filter).Then(result => (int)result));
 }
Example #2
0
 public static IPromise <int> Count <T>(IPromiseEnumerator <T> items)
 {
     return(LongCountAlgorithm.LongCount(items).Then(result => (int)result));
 }