🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-08 21:30:40 | PHP 8.2.33
📂
/ (Root)
/
opt
/
alt
/
python38
/
lib
/
python3.8
/
site-packages
/
reactivex
/
operators
/
__pycache__
📍 /opt/alt/python38/lib/python3.8/site-packages/reactivex/operators/__pycache__
🔄 Refresh
✏️
Editing: _windowwithcount.cpython-38.pyc
Read Only
U v�i� � @ s� d dl Z d dlmZmZmZmZ d dlmZmZ d dl m Z mZ d dlm Z mZ d dlmZ e �d�Zed�Zdeee eee geee f d �d d�ZdgZdS ) � N)�Callable�List�Optional�TypeVar)� Observable�abc)�RefCountDisposable�SingleAssignmentDisposable)�ArgumentOutOfRangeException�add_ref)�SubjectZRx�_T)�count�skip�returnc sR � dkrt � �|dk r|n� ��dkr,t � �tt ttt d�� �fdd�}|S )a� Projects each element of an observable sequence into zero or more windows which are produced based on element count information. Examples: >>> window_with_count(10) >>> window_with_count(10, 1) Args: count: Length of each window. skip: [Optional] Number of elements to skip between creation of consecutive windows. If not specified, defaults to the count. Returns: An observable sequence of windows. r N)�sourcer c s2 dt jtt tt j d���� fdd� }t|�S )N)�observer� schedulerc s� t � }t|��dg�g ����fdd�� � � td d��� ���fdd�}td d���fdd �}d d ���fdd�}�j||||d �|_�S )Nr c s$ t � } ��| � � �t| ��� d S )N)r �append�on_nextr )�s)r �q�refCountDisposable� �U/opt/alt/python38/lib/python3.8/site-packages/reactivex/operators/_windowwithcount.py� create_window4 s zWwindow_with_count_.<locals>.window_with_count.<locals>.subscribe.<locals>.create_window)�xr c st �D ]}|� | � q�d � d }|dkrJ|� dkrJ��d�}|�� �d d7 <