massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2and3 / sched.pyi
1 import sys\r
2 from typing import Any, Callable, Dict, List, NamedTuple, Optional, Text, Tuple\r
3 \r
4 Event = NamedTuple('Event', [\r
5     ('time', float),\r
6     ('priority', Any),\r
7     ('action', Callable[..., Any]),\r
8     ('argument', Tuple[Any, ...]),\r
9     ('kwargs', Dict[Text, Any]),\r
10 ])\r
11 \r
12 class scheduler:\r
13     if sys.version_info >= (3, 3):\r
14         def __init__(self, timefunc: Callable[[], float] = ..., delayfunc: Callable[[float], None] = ...) -> None: ...\r
15         def enterabs(self, time: float, priority: Any, action: Callable[..., Any], argument: Tuple[Any, ...] = ..., kwargs: Dict[str, Any] = ...) -> Event: ...\r
16         def enter(self, delay: float, priority: Any, action: Callable[..., Any], argument: Tuple[Any, ...] = ..., kwargs: Dict[str, Any] = ...) -> Event: ...\r
17         def run(self, blocking: bool = ...) -> Optional[float]: ...\r
18     else:\r
19         def __init__(self, timefunc: Callable[[], float], delayfunc: Callable[[float], None]) -> None: ...\r
20         def enterabs(self, time: float, priority: Any, action: Callable[..., Any], argument: Tuple[Any, ...]) -> Event: ...\r
21         def enter(self, delay: float, priority: Any, action: Callable[..., Any], argument: Tuple[Any, ...]) -> Event: ...\r
22         def run(self) -> None: ...\r
23 \r
24     def cancel(self, event: Event) -> None: ...\r
25     def empty(self) -> bool: ...\r
26     @property\r
27     def queue(self) -> List[Event]: ...\r