rx/core/observablebase.py
def timeout(self, duetime: Union[int, datetime], other: 'ObservableBase' = None) -> 'ObservableBase':
        """Returns the source observable sequence or the other
        observable sequence if duetime elapses.

        1 - res = source.timeout(5000); # 5 seconds
        # As a date and timeout observable
        2 - res = source.timeout(datetime(), Observable.return_value(42))
        # 5 seconds and timeout observable
        3 - res = source.timeout(5000, Observable.return_value(42))
        # As a date and timeout observable

        Keyword arguments:
        duetime -- Absolute (specified as a datetime object) or relative
            time (specified as an integer denoting milliseconds) when a
            timeout occurs.
        other -- Sequence to return in case of a timeout. If not
            specified, a timeout error throwing sequence will be used.

        Returns the source sequence switching to the other sequence in
        case of a timeout.
        """
        from ..operators.observable.timeout import timeout
        return timeout(self, duetime, other)
Returns the source observable sequence or the other
        observable sequence if duetime elapses.

        1 - res = source.timeout(5000); # 5 seconds
        # As a date and timeout observable
        2 - res = source.timeout(datetime(), Observable.return_value(42))
        # 5 seconds and timeout observable
        3 - res = source.timeout(5000, Observable.return_value(42))
        # As a date and timeout observable

        Keyword arguments:
        duetime -- Absolute (specified as a datetime object) or relative
            time (specified as an integer denoting milliseconds) when a
            timeout occurs.
        other -- Sequence to return in case of a timeout. If not
            specified, a timeout error throwing sequence will be used.

        Returns the source sequence switching to the other sequence in
        case of a timeout.
        
Returns the source observable sequence or the other
observable sequence if duetime elapses.

res = source.timeout(5000); # 5 seconds
As a date and timeout observable
2 - res = source.timeout(datetime(), Observable.return_value(42))
5 seconds and timeout observable
3 - res = source.timeout(5000, Observable.return_value(42))
As a date and timeout observable

Keyword arguments:
duetime -- Absolute (specified as a datetime object) or relative
time (specified as an integer denoting milliseconds) when a
timeout occurs.
other -- Sequence to return in case of a timeout. If not
specified, a timeout error throwing sequence will be used.

Returns the source sequence switching to the other sequence in
case of a timeout.
Returns the source observable sequence or the other observable sequence if duetime elapses . res = source . timeout ( 5000 ) ; # 5 seconds As a date and timeout observable 2 - res = source . timeout ( datetime () Observable . return_value ( 42 )) 5 seconds and timeout observable 3 - res = source . timeout ( 5000 Observable . return_value ( 42 )) As a date and timeout observable Keyword arguments : duetime -- Absolute ( specified as a datetime object ) or relative time ( specified as an integer denoting milliseconds ) when a timeout occurs . other -- Sequence to return in case of a timeout . If not specified a timeout error throwing sequence will be used . Returns the source sequence switching to the other sequence in case of a timeout .
def timeout(self, duetime: Union[int, datetime], other: 'ObservableBase' = None) -> 'ObservableBase':
        from ..operators.observable.timeout import timeout
        return timeout(self, duetime, other)
def timeout ( self , duetime : Union [ int , datetime ] , other : 'ObservableBase' = None ) -> 'ObservableBase' : from . . operators . observable . timeout import timeout return timeout ( self , duetime , other )
Returns the source observable sequence or the other
observable sequence if duetime elapses.
Returns the source observable sequence or the other observable sequence if duetime elapses .
"""Returns the source observable sequence or the other
        observable sequence if duetime elapses.

        1 - res = source.timeout(5000); # 5 seconds
        # As a date and timeout observable
        2 - res = source.timeout(datetime(), Observable.return_value(42))
        # 5 seconds and timeout observable
        3 - res = source.timeout(5000, Observable.return_value(42))
        # As a date and timeout observable

        Keyword arguments:
        duetime -- Absolute (specified as a datetime object) or relative
            time (specified as an integer denoting milliseconds) when a
            timeout occurs.
        other -- Sequence to return in case of a timeout. If not
            specified, a timeout error throwing sequence will be used.

        Returns the source sequence switching to the other sequence in
        case of a timeout.
        """
self
duetime
Union[int, datetime]
other
'ObservableBase'