예제 #1
0
파일: delay.py 프로젝트: aguil/RxPython
 def run(self, observer, cancel, setSink):
     if self.scheduler.isLongRunning:
         sink = self.LongrunningSink(self, observer, cancel)
         setSink(sink)
         return sink.run()
     else:
         sink = self.Sink(self, observer, cancel)
         setSink(sink)
         return sink.run()
예제 #2
0
 def run(self, observer, cancel, setSink):
     if isinstance(self.right, Observable):
         sink = self.Sink(self, observer, cancel)
         setSink(sink)
         return sink.run()
     else:
         sink = self.IterableSink(self, observer, cancel)
         setSink(sink)
         return sink.run()
예제 #3
0
 def run(self, observer, cancel, setSink):
   if self.maxConcurrency > 0:
     sink = self.ConcurrentSink(self, observer, cancel)
     setSink(sink)
     return sink.run()
   else:
     sink = self.SerialSink(self, observer, cancel)
     setSink(sink)
     return sink.run()
예제 #4
0
 def run(self, observer, cancel, setSink):
   if isinstance(self.right, Observable):
     sink = self.Sink(self, observer, cancel)
     setSink(sink)
     return sink.run()
   else:
     sink = self.IterableSink(self, observer, cancel)
     setSink(sink)
     return sink.run()
예제 #5
0
파일: delay.py 프로젝트: aguil/RxPython
 def run(self, observer, cancel, setSink):
   if self.scheduler.isLongRunning:
     sink = self.LongrunningSink(self, observer, cancel)
     setSink(sink)
     return sink.run()
   else:
     sink = self.Sink(self, observer, cancel)
     setSink(sink)
     return sink.run()
예제 #6
0
파일: timer.py 프로젝트: aguil/RxPython
 def run(self, observer, cancel, setSink):
     if self.period == None:
         sink = self.Sink(self, observer, cancel)
         setSink(sink)
         return sink.run()
     else:
         sink = self.PeriodSink(self, observer, cancel)
         setSink(sink)
         return sink.run()
예제 #7
0
파일: generate.py 프로젝트: aguil/RxPython
 def run(self, observer, cancel, setSink):
   if self.isAbsolute and self.timeSelector != None:
     sink = self.AlphaSink(self, observer, cancel)
     setSink(sink)
     return sink.run()
   elif not self.isAbsolute and self.timeSelector != None:
     sink = self.DeltaSink(self, observer, cancel)
     setSink(sink)
     return sink.run()
   else:
     sink = self.Sink(self, observer, cancel)
     setSink(sink)
     return sink.run()
예제 #8
0
 def run(self, observer, cancel, setSink):
     if self.isAbsolute and self.timeSelector != None:
         sink = self.AlphaSink(self, observer, cancel)
         setSink(sink)
         return sink.run()
     elif not self.isAbsolute and self.timeSelector != None:
         sink = self.DeltaSink(self, observer, cancel)
         setSink(sink)
         return sink.run()
     else:
         sink = self.Sink(self, observer, cancel)
         setSink(sink)
         return sink.run()
예제 #9
0
파일: buffer.py 프로젝트: aguil/RxPython
 def run(self, observer, cancel, setSink):
     if self.scheduler == None:
         sink = self.SinkWithCount(self, observer, cancel)
         setSink(sink)
         return sink.run()
     elif self.count > 0:
         sink = self.SinkWithCountAndTimeSpan(self, observer, cancel)
         setSink(sink)
         return sink.run()
     else:
         if self.timeSpan == self.timeShift:
             sink = self.SinkWithTimeSpan(self, observer, cancel)
             setSink(sink)
             return sink.run()
         else:
             sink = self.SinkWithTimerAndTimeSpan(self, observer, cancel)
             setSink(sink)
             return sink.run()
예제 #10
0
파일: window.py 프로젝트: aguil/RxPython
 def run(self, observer, cancel, setSink):
   if self.scheduler == None:
     sink = self.SinkWithCount(self, observer, cancel)
     setSink(sink)
     return sink.run()
   elif self.count > 0:
     sink = self.SinkWithCountAndTimeSpan(self, observer, cancel)
     setSink(sink)
     return sink.run()
   else:
     if self.timeSpan == self.timeShift:
       sink = self.SinkWithTimeSpan(self, observer, cancel)
       setSink(sink)
       return sink.run()
     else:
       sink = self.SinkWithTimerAndTimeSpan(self, observer, cancel)
       setSink(sink)
       return sink.run()
예제 #11
0
 def run(self, observer, cancel, setSink):
   # if self.withIterableResult:
   #   sink = self.IterableSink(self, observer, cancel)
   #   setSink(sink)
   #   return sink.run()
   # else:
   sink = self.Sink(self, observer, cancel)
   setSink(sink)
   return sink.run()
예제 #12
0
 def run(self, observer, cancel, setSink):
     # if self.withIterableResult:
     #   sink = self.IterableSink(self, observer, cancel)
     #   setSink(sink)
     #   return sink.run()
     # else:
     sink = self.Sink(self, observer, cancel)
     setSink(sink)
     return sink.run()
예제 #13
0
파일: skipUntil.py 프로젝트: aguil/RxPython
 def run(self, observer, cancel, setSink):
   sink = self.Sink(self, observer, cancel)
   setSink(sink)
   return sink.run()