1 from typing import Any
\r
2 from tornado.util import Configurable
\r
4 signal = ... # type: Any
\r
6 class TimeoutError(Exception): ...
\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
16 def initialized(): ...
\r
17 def install(self): ...
\r
19 def clear_instance(): ...
\r
21 def current(instance=...): ...
\r
22 def make_current(self): ...
\r
24 def clear_current(): ...
\r
26 def configurable_base(cls): ...
\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
39 def run_sync(self, func, timeout=...): ...
\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
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
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
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
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
84 def is_running(self): ...
\r