File: _onerrorresumenext.py

package info (click to toggle)
python-rx 4.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,204 kB
  • sloc: python: 39,525; javascript: 77; makefile: 24
file content (18 lines) | stat: -rw-r--r-- 419 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from typing import Callable, TypeVar

import reactivex
from reactivex import Observable

_T = TypeVar("_T")


def on_error_resume_next_(
    second: Observable[_T],
) -> Callable[[Observable[_T]], Observable[_T]]:
    def on_error_resume_next(source: Observable[_T]) -> Observable[_T]:
        return reactivex.on_error_resume_next(source, second)

    return on_error_resume_next


__all__ = ["on_error_resume_next_"]