*j F S SK r S SKrS SKJr S SKJr S SKrS SK Jr S/r \" SS5 r S\ R l S \ R l S \ R l S\ R l S\ R l S \ R l \" 5 r " S S5 rg) N) namedtuple)count) monotonic schedulerEventz2time, priority, sequence, action, argument, kwargszaNumeric type compatible with the return value of the timefunc function passed to the constructor.zSEvents scheduled for the same time will be executed in the order of their priority.zbA continually increasing sequence number that separates events if time and priority are equal.z?Executing the event means executing action(*argument, **kwargs)zGargument is a sequence holding the positional arguments for the action.zDkwargs is a dictionary holding the keyword arguments for the action.c x \ rS rSr\\R 4S jrS\4S jr S\4S jr S rS rSS jr \S 5 rS rg) r 3 c | / U l [ R " 5 U l Xl X l [ 5 U l g N)_queue threadingRLock_locktimefunc delayfuncr _sequence_generator)selfr r s ,/opt/alt/python313/lib64/python3.13/sched.py__init__scheduler.__init__5 s- __& "#(7 c U[ L a 0 nU R [ X[ U R 5 X4U5 n[ R " U R U5 S S S 5 U$ ! , ( d f W$ = fr ) _sentinelr r nextr heapqheappushr )r timepriorityactionargumentkwargsevents r enterabsscheduler.enterabs> sc YF ZZ$$t/G/G*H F4ENN4;;. Z s AA%% A4c N U R 5 U- nU R XbX4U5 $ r )r r$ )r delayr r r! r" r s r enterscheduler.enterN s' }}&}}TVvFFr c U R U R R U5 [ R " U R 5 S S S 5 g ! , ( d f g = fr )r r remover heapify)r r# s r cancelscheduler.cancelW s7 ZZKKu%MM$++& ZZs