1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Twisted Internet: Asynchronous I/O and Events.
Twisted Internet is a collection of compatible event-loops for Python. It contains
the code to dispatch events to interested observers and a portable API so that
observers need not care about which event loop is running. Thus, it is possible
to use the same code for different loops, from Twisted's basic, yet portable,
select-based loop to the loops of various GUI toolkits like GTK+ or Tk.
"""
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from .interfaces import (
IReactorCore,
IReactorFDSet,
IReactorProcess,
IReactorTCP,
IReactorTime,
)
class _IReactorCommon(
IReactorCore,
IReactorTime,
IReactorFDSet,
IReactorTCP,
IReactorProcess,
):
"""
A make-believe interface supporting all the commonly-implemented parts
of the reactor. For other interfaces which may or may not be supplied
by the environment, i.e. IReactorSSL, adapt the reactor like
C{IReactorSSL(reactor)}.
"""
reactor: _IReactorCommon
|