Exemple #1
0
 public override IPublisher <int> CreatePublisher(long elements)
 {
     int[] count = { 5 };
     return(Flowable.Defer(() => {
         if (count[0]-- <= 0)
         {
             return Flowable.Range(1, (int)elements);
         }
         return Flowable.Error <int>(new Exception());
     })
            .Retry());
 }
Exemple #2
0
 public override IPublisher <int> CreatePublisher(long elements)
 {
     return(Flowable.Defer(() => Flowable.Range(1, (int)elements)));
 }