🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-09 03:46:01 | PHP 8.2.33
📂
/ (Root)
/
opt
/
alt
/
python38
/
lib
/
python3.8
/
site-packages
/
reactivex
/
scheduler
/
__pycache__
📍 /opt/alt/python38/lib/python3.8/site-packages/reactivex/scheduler/__pycache__
🔄 Refresh
✏️
Editing: eventloopscheduler.cpython-38.pyc
Read Only
U v�i� � @ s� d dl Z d dlZd dlmZ d dlmZmZmZ d dlm Z mZ d dl mZ d dlm Z d dlmZ d dlmZ d d lmZ d dlmZ d dlmZ e �d �Zed�ZG dd� dee j�ZdS )� N)�deque)�Deque�Optional�TypeVar)�abc�typing)� Disposable)�default_thread_factory)� DELTA_ZERO)�DisposedException)� PriorityQueue� )�PeriodicScheduler)� ScheduledItemZRx�_TStatec s� e Zd ZdZdeej edd�� fdd� Zdej e ee ejd�dd �Z dejej e ee ejd �dd�Zdejej e ee ejd �d d�Zdejeje ee ejd�� fdd� Zed�dd�Zdd�dd�Zdd�dd�Zdd�dd�Z� ZS ) �EventLoopSchedulerzFCreates an object that schedules units of work on a designated thread.NF)�thread_factory� exit_if_empty�returnc sJ t � �� d| _|pt| _d | _t�t�� �| _ t � | _t� | _ || _d S )NF)�super�__init__�_is_disposedr �_thread_factory�_thread� threading� Condition�Lock� _conditionr �_queuer �_ready_list�_exit_if_empty)�selfr r �� __class__� �W/opt/alt/python38/lib/python3.8/site-packages/reactivex/scheduler/eventloopscheduler.pyr s �zEventLoopScheduler.__init__)�action�stater c C s | j | j||d�S )a! Schedules an action to be executed. Args: action: Action to be executed. state: [Optional] state to be given to the action function. Returns: The disposable object used to cancel the scheduled action (best effort). �r'