Format: application/octet-stream
1 import sys
2 from typing import Any, Callable, Dict, List, NamedTuple, Optional, Text, Tuple
3
4 class Event(NamedTuple):
5 time: float
6 priority: Any
7 action: Callable[..., Any]
8 argument: Tuple[Any, ...]
9 kwargs: Dict[Text, Any]
10
11 class scheduler:
12 if sys.version_info >= (3, 3):
13 def __init__(self, timefunc: Callable[[], float] = ..., delayfunc: Callable[[float], None] = ...) -> None: ...
14 def enterabs(
15 self,
16 time: float,
17 priority: Any,
18 action: Callable[..., Any],
19 argument: Tuple[Any, ...] = ...,
20 kwargs: Dict[str, Any] = ...,
21 ) -> Event: ...
22 def enter(
23 self,
24 delay: float,
25 priority: Any,
26 action: Callable[..., Any],
27 argument: Tuple[Any, ...] = ...,
28 kwargs: Dict[str, Any] = ...,
29 ) -> Event: ...
30 def run(self, blocking: bool = ...) -> Optional[float]: ...
31 else:
32 def __init__(self, timefunc: Callable[[], float], delayfunc: Callable[[float], None]) -> None: ...
33 def enterabs(self, time: float, priority: Any, action: Callable[..., Any], argument: Tuple[Any, ...]) -> Event: ...
34 def enter(self, delay: float, priority: Any, action: Callable[..., Any], argument: Tuple[Any, ...]) -> Event: ...
35 def run(self) -> None: ...
36 def cancel(self, event: Event) -> None: ...
37 def empty(self) -> bool: ...
38 @property
39 def queue(self) -> List[Event]: ...
40