Exemplo n.º 1
0
Arquivo: of.py Projeto: jesonjn/RxPY
    def of(cls, *args, **kwargs):
        """This method creates a new Observable instance with a variable number 
        of arguments, regardless of number or type of the arguments.

        Example:
        res = rx.Observable.of(1,2,3)

        Returns the observable sequence whose elements are pulled from the given 
        arguments""" 
        
        return Observable.from_array(args, scheduler=kwargs.get("scheduler"))
Exemplo n.º 2
0
Arquivo: of.py Projeto: jesonjn/RxPY
    def of(cls, *args, **kwargs):
        """This method creates a new Observable instance with a variable number 
        of arguments, regardless of number or type of the arguments.

        Example:
        res = rx.Observable.of(1,2,3)

        Returns the observable sequence whose elements are pulled from the given 
        arguments"""

        return Observable.from_array(args, scheduler=kwargs.get("scheduler"))
Exemplo n.º 3
0
 def create():
     return Observable.from_array(enumerable_finite, scheduler=scheduler)