rx/core/observable.py
def case(mapper, sources, default_source=None) -> ObservableBase:
        """Uses mapper to determine which source in sources to use.

        Example:
        1 - res = rx.Observable.case(mapper, { '1': obs1, '2': obs2 })
        2 - res = rx.Observable.case(mapper, { '1': obs1, '2': obs2 }, obs0)

        Keyword arguments:
        mapper -- The function which extracts the value for to test in
            a case statement.
        sources -- An object which has keys which correspond to the case
            statement labels.
        default_source -- The observable sequence or Future that will be
            run if the sources are not matched. If this is not provided,
            it defaults to rx.Observabe.empty.

        Returns an observable sequence which is determined by a case
        statement.
        """
        from ..operators.observable.case import case
        return case(mapper, sources, default_source)
Uses mapper to determine which source in sources to use.

        Example:
        1 - res = rx.Observable.case(mapper, { '1': obs1, '2': obs2 })
        2 - res = rx.Observable.case(mapper, { '1': obs1, '2': obs2 }, obs0)

        Keyword arguments:
        mapper -- The function which extracts the value for to test in
            a case statement.
        sources -- An object which has keys which correspond to the case
            statement labels.
        default_source -- The observable sequence or Future that will be
            run if the sources are not matched. If this is not provided,
            it defaults to rx.Observabe.empty.

        Returns an observable sequence which is determined by a case
        statement.
        
Uses mapper to determine which source in sources to use.
Uses mapper to determine which source in sources to use .
def case(mapper, sources, default_source=None) -> ObservableBase:
        from ..operators.observable.case import case
        return case(mapper, sources, default_source)
def case ( mapper , sources , default_source = None ) -> ObservableBase : from . . operators . observable . case import case return case ( mapper , sources , default_source )
Uses mapper to determine which source in sources to use.
Uses mapper to determine which source in sources to use .
"""Uses mapper to determine which source in sources to use.

        Example:
        1 - res = rx.Observable.case(mapper, { '1': obs1, '2': obs2 })
        2 - res = rx.Observable.case(mapper, { '1': obs1, '2': obs2 }, obs0)

        Keyword arguments:
        mapper -- The function which extracts the value for to test in
            a case statement.
        sources -- An object which has keys which correspond to the case
            statement labels.
        default_source -- The observable sequence or Future that will be
            run if the sources are not matched. If this is not provided,
            it defaults to rx.Observabe.empty.

        Returns an observable sequence which is determined by a case
        statement.
        """
mapper
sources
default_source
examples
None