🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-08-08 02:17:05 | PHP 8.2.32
📂
/ (Root)
/
opt
/
alt
/
python38
/
lib
/
python3.8
/
site-packages
/
reactivex
/
abc
/
__pycache__
📍 /opt/alt/python38/lib/python3.8/site-packages/reactivex/abc/__pycache__
🔄 Refresh
✏️
Editing: scheduler.cpython-38.pyc
Read Only
U v�i � @ s� d dl mZmZ d dlmZmZ d dlmZmZmZm Z ddl mZ ed�Ze ee f Ze ee f Ze eee f Zedee gee f ZG dd� de�Zdd d ddgZd S )� )�ABC�abstractmethod)�datetime� timedelta)�Callable�Optional�TypeVar�Union� )�DisposableBase�_TState� SchedulerBasec @ s� e Zd ZdZdZeeed�dd���Zede e ee ed�dd ��Z edee e ee ed �dd��Zedee e ee ed �d d��Zeeeed�dd���Zeeeed�dd���Zeeeed�dd���ZdS )r zScheduler abstract base class.� )�returnc C s t S )z�Represents a notion of time for this scheduler. Tasks being scheduled on a scheduler will adhere to the time denoted by this property. Returns: The scheduler's current time, as a datetime instance. ��NotImplemented)�selfr r �H/opt/alt/python38/lib/python3.8/site-packages/reactivex/abc/scheduler.py�now s zSchedulerBase.nowN)�action�stater c C s t 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 )r r r r r r �schedule$ s zSchedulerBase.schedule)�duetimer r r c C s t S )au Schedules an action to be executed after duetime. Args: duetime: Relative time after which to execute the action. 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 �r r r r r r r �schedule_relative5 s zSchedulerBase.schedule_relativec C s t S )ao Schedules an action to be executed at duetime. Args: duetime: Absolute time at which to execute the action. 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 r r r r �schedule_absoluteJ s zSchedulerBase.schedule_absolute)�valuer c C s t S )aQ Converts time value to seconds. This method handles both absolute (datetime) and relative (timedelta) values. If the argument is already a float, it is simply returned unchanged. Args: value: the time value to convert to seconds. Returns: The value converted to seconds. r ��clsr r r r � to_seconds_ s zSchedulerBase.to_secondsc C s t S )aT Converts time value to datetime. This method handles both absolute (float) and relative (timedelta) values. If the argument is already a datetime, it is simply returned unchanged. Args: value: the time value to convert to datetime. Returns: The value converted to datetime. r r r r r �to_datetimeo s zSchedulerBase.to_datetimec C s t S )a� Converts time value to timedelta. This method handles both absolute (datetime) and relative (float) values. If the argument is already a timedelta, it is simply returned unchanged. If the argument is an absolute time, the result value will be the timedelta since the epoch, January 1st, 1970, 00:00:00. Args: value: the time value to convert to timedelta. Returns: The value converted to timedelta. r r r r r �to_timedelta s zSchedulerBase.to_timedelta)N)N)N)�__name__� __module__�__qualname__�__doc__� __slots__�propertyr r r �ScheduledActionr r r r �RelativeTimer �AbsoluteTimer �classmethod�AbsoluteOrRelativeTime�floatr r r r! r r r r r sJ � � �� ��r* r) r, r( N)�abcr r r r �typingr r r r Z disposabler r r- r* r) r, r( r �__all__r r r r �<module> s( �� �
💾 Save Changes
❌ Cancel