예제 #1
0
파일: repeat.py 프로젝트: ESSL-CQQ/RxPY
def repeat(self, repeat_count=None):
    """Repeats the observable sequence a specified number of times. If the
    repeat count is not specified, the sequence repeats indefinitely.

    1 - repeated = source.repeat()
    2 - repeated = source.repeat(42)

    Keyword arguments:
    repeat_count -- Number of times to repeat the sequence. If not
        provided, repeats the sequence indefinitely.

    Returns the observable sequence producing the elements of the given
    sequence repeatedly."""

    return Observable.concat(Enumerable.repeat(self, repeat_count))
예제 #2
0
파일: repeat.py 프로젝트: zmyer/RxPY
def repeat(self, repeat_count=None):
    """Repeats the observable sequence a specified number of times. If the
    repeat count is not specified, the sequence repeats indefinitely.

    1 - repeated = source.repeat()
    2 - repeated = source.repeat(42)

    Keyword arguments:
    repeat_count -- Number of times to repeat the sequence. If not
        provided, repeats the sequence indefinitely.

    Returns the observable sequence producing the elements of the given
    sequence repeatedly."""

    return Observable.concat(Enumerable.repeat(self, repeat_count))
예제 #3
0
파일: retry.py 프로젝트: jesonjn/RxPY
 def retry(self, retry_count=None):
     """Repeats the source observable sequence the specified number of times
     or until it successfully terminates. If the retry count is not 
     specified, it retries indefinitely.
  
     1 - retried = retry.repeat()
     2 - retried = retry.repeat(42)
 
     retry_count -- [Optional] Number of times to retry the sequence. If not
     provided, retry the sequence indefinitely.
     
     Returns an observable sequence producing the elements of the given 
     sequence repeatedly until it terminates successfully. """
 
     return Observable.catch_exception(Enumerable.repeat(self, retry_count))
예제 #4
0
파일: retry.py 프로젝트: jesonjn/RxPY
    def retry(self, retry_count=None):
        """Repeats the source observable sequence the specified number of times
        or until it successfully terminates. If the retry count is not 
        specified, it retries indefinitely.
     
        1 - retried = retry.repeat()
        2 - retried = retry.repeat(42)
    
        retry_count -- [Optional] Number of times to retry the sequence. If not
        provided, retry the sequence indefinitely.
        
        Returns an observable sequence producing the elements of the given 
        sequence repeatedly until it terminates successfully. """

        return Observable.catch_exception(Enumerable.repeat(self, retry_count))