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 Ú