massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / third_party / 2 / tornado / ioloop.pyi
1 from typing import Any\r
2 from tornado.util import Configurable\r
3 \r
4 signal = ...  # type: Any\r
5 \r
6 class TimeoutError(Exception): ...\r
7 \r
8 class IOLoop(Configurable):\r
9     NONE = ...  # type: Any\r
10     READ = ...  # type: Any\r
11     WRITE = ...  # type: Any\r
12     ERROR = ...  # type: Any\r
13     @staticmethod\r
14     def instance(): ...\r
15     @staticmethod\r
16     def initialized(): ...\r
17     def install(self): ...\r
18     @staticmethod\r
19     def clear_instance(): ...\r
20     @staticmethod\r
21     def current(instance=...): ...\r
22     def make_current(self): ...\r
23     @staticmethod\r
24     def clear_current(): ...\r
25     @classmethod\r
26     def configurable_base(cls): ...\r
27     @classmethod\r
28     def configurable_default(cls): ...\r
29     def initialize(self, make_current=...): ...\r
30     def close(self, all_fds=...): ...\r
31     def add_handler(self, fd, handler, events): ...\r
32     def update_handler(self, fd, events): ...\r
33     def remove_handler(self, fd): ...\r
34     def set_blocking_signal_threshold(self, seconds, action): ...\r
35     def set_blocking_log_threshold(self, seconds): ...\r
36     def log_stack(self, signal, frame): ...\r
37     def start(self): ...\r
38     def stop(self): ...\r
39     def run_sync(self, func, timeout=...): ...\r
40     def time(self): ...\r
41     def add_timeout(self, deadline, callback, *args, **kwargs): ...\r
42     def call_later(self, delay, callback, *args, **kwargs): ...\r
43     def call_at(self, when, callback, *args, **kwargs): ...\r
44     def remove_timeout(self, timeout): ...\r
45     def add_callback(self, callback, *args, **kwargs): ...\r
46     def add_callback_from_signal(self, callback, *args, **kwargs): ...\r
47     def spawn_callback(self, callback, *args, **kwargs): ...\r
48     def add_future(self, future, callback): ...\r
49     def handle_callback_exception(self, callback): ...\r
50     def split_fd(self, fd): ...\r
51     def close_fd(self, fd): ...\r
52 \r
53 class PollIOLoop(IOLoop):\r
54     time_func = ...  # type: Any\r
55     def initialize(self, impl, time_func=..., **kwargs): ...\r
56     def close(self, all_fds=...): ...\r
57     def add_handler(self, fd, handler, events): ...\r
58     def update_handler(self, fd, events): ...\r
59     def remove_handler(self, fd): ...\r
60     def set_blocking_signal_threshold(self, seconds, action): ...\r
61     def start(self): ...\r
62     def stop(self): ...\r
63     def time(self): ...\r
64     def call_at(self, deadline, callback, *args, **kwargs): ...\r
65     def remove_timeout(self, timeout): ...\r
66     def add_callback(self, callback, *args, **kwargs): ...\r
67     def add_callback_from_signal(self, callback, *args, **kwargs): ...\r
68 \r
69 class _Timeout:\r
70     deadline = ...  # type: Any\r
71     callback = ...  # type: Any\r
72     tiebreaker = ...  # type: Any\r
73     def __init__(self, deadline, callback, io_loop) -> None: ...\r
74     def __lt__(self, other): ...\r
75     def __le__(self, other): ...\r
76 \r
77 class PeriodicCallback:\r
78     callback = ...  # type: Any\r
79     callback_time = ...  # type: Any\r
80     io_loop = ...  # type: Any\r
81     def __init__(self, callback, callback_time, io_loop=...) -> None: ...\r
82     def start(self): ...\r
83     def stop(self): ...\r
84     def is_running(self): ...\r