U
vâ’iV ã @ sx d dl mZmZmZ d dlmZmZm Z d dlmZ d
eded f ee j eef eg ee f dœdd „Z
d gZdS )é )ÚAnyÚCallableÚOptional)Ú
ObservableÚabcÚtyping)Ú
DisposableN.).N)ÚfuncÚmapperÚreturnc s t tt dœ‡ ‡fdd„}|S )a Converts a callback function to an observable sequence.
Args:
func: Function with a callback as the last argument to
convert to an Observable sequence.
mapper: [Optional] A mapper which takes the arguments
from the callback to produce a single item to yield on next.
Returns:
A function, when executed with the required arguments minus
the callback, produces an Observable sequence with a single value of
the arguments to the callback as a list.
©Úargsr c s: t | ƒ‰ dtjt ttj tjdœ‡ ‡‡fdd„
}t|ƒS )N)ÚobserverÚ schedulerr c s. t d dœ‡‡ fdd„}ˆ |¡ ˆˆŽ tƒ S )Nr c
s† t | ƒ}ˆ rXzˆ | ƒ}W n2 tk
rJ } zˆ |¡ W Y ¢d S d }~X Y nX ˆ |¡ n*t|ƒdkrpˆj|Ž n
ˆ |¡ ˆ ¡ d S )Né )ÚlistÚ ExceptionZon_errorZon_nextÚlenZon_completed)r
ÚresultsÚerr)r
r © úR/opt/alt/python38/lib/python3.8/site-packages/reactivex/observable/fromcallback.pyÚhandler s
zDfrom_callback_.