🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-09 03:52:02 | 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: trampolinescheduler.cpython-38.pyc
Read Only
U v�i� � @ s� d dl Z d dlmZmZ d dlmZmZ d dlmZ d dlm Z d dl mZ ddlm Z dd lmZ dd lmZ ed�Ze �d�ZG d d� de�ZdS )� N)�Optional�TypeVar)�abc�typing)�DisposableBase)�ScheduledAction)� DELTA_ZERO� )� ScheduledItem)� Scheduler)� Trampoline�_TStateZRxc @ s� e Zd ZdZdd�dd�Zed�dd�Zdeje e e ejd�d d �Zde jeje e e ejd�dd �Zde jeje e e ejd�dd�Zed�dd�Zee e e d�dd�ZdS )�TrampolineSchedulera� Represents an object that schedules units of work on the trampoline. You should never schedule timeouts using the *TrampolineScheduler*, as it will block the thread while waiting. Each instance has its own trampoline (and queue), and you can schedule work on it from different threads. Beware though, that the first thread to call a *schedule* method while the trampoline is idle will then remain occupied until the queue is empty. N)�returnc C s t � | _d S �N)r �_tramp��self� r �X/opt/alt/python38/lib/python3.8/site-packages/reactivex/scheduler/trampolinescheduler.py�__init__ s zTrampolineScheduler.__init__c C s | j S r )r r r r r �get_trampoline s z"TrampolineScheduler.get_trampoline)�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 )�schedule_absolute�now)r r r r r r �schedule# s zTrampolineScheduler.schedule)�duetimer r r c C s&