@@ -24,6 +24,8 @@ the execution of the process.
24
24
Equivalent to calling ``get_event_loop_policy().new_event_loop() ``.
25
25
26
26
27
+ .. _asyncio-event-loops :
28
+
27
29
Available event loops
28
30
---------------------
29
31
@@ -57,6 +59,7 @@ Example to use a :class:`ProactorEventLoop` on Windows::
57
59
loop = asyncio.ProactorEventLoop()
58
60
asyncio.set_event_loop(loop)
59
61
62
+ .. _asyncio-platform-support :
60
63
61
64
Platform support
62
65
----------------
@@ -70,21 +73,27 @@ Windows
70
73
Common limits of Windows event loops:
71
74
72
75
- :meth: `~BaseEventLoop.create_unix_server ` and
73
- :meth: `~BaseEventLoop.create_unix_server ` are not supported: specific to UNIX
76
+ :meth: `~BaseEventLoop.create_unix_server ` are not supported: the socket
77
+ family :data: `socket.AF_UNIX ` is specific to UNIX
74
78
- :meth: `~BaseEventLoop.add_signal_handler ` and
75
79
:meth: `~BaseEventLoop.remove_signal_handler ` are not supported
76
- - Pipes are not supported: : meth: `~BaseEventLoop.connect_read_pipe ` and
77
- :meth: ` ~BaseEventLoop.connect_write_pipe `
78
- - :meth: ` EventLoopPolicy.set_child_watcher ` is not supported
80
+ - : meth: `EventLoopPolicy.set_child_watcher ` is not supported.
81
+ :class: ` ProactorEventLoop ` supports subprocesses. It has only one
82
+ implementation to watch child processes, there is no need to configure it.
79
83
80
84
:class: `SelectorEventLoop ` specific limits:
81
85
82
86
- :class: `~selectors.SelectSelector ` is used but it only supports sockets,
83
87
see the `MSDN documentation of select
84
- <http://msdn.microsoft.com/en-us/library/windows/desktop/ms740141%28v=vs.85%29.aspx> `_.
85
- - it is not possible to execute subprocesses
88
+ <http://msdn.microsoft.com/en-us/library/windows/desktop/ms740141%28v=vs.85%29.aspx> `_
86
89
- :meth: `~BaseEventLoop.add_reader ` and :meth: `~BaseEventLoop.add_writer ` only
87
90
accept file descriptors of sockets
91
+ - Pipes are not supported
92
+ (ex: :meth: `~BaseEventLoop.connect_read_pipe `,
93
+ :meth: `~BaseEventLoop.connect_write_pipe `)
94
+ - :ref: `Subprocesses <asyncio-subprocess >` are not supported
95
+ (ex: :meth: `~BaseEventLoop.subprocess_exec `,
96
+ :meth: `~BaseEventLoop.subprocess_shell `)
88
97
89
98
:class: `ProactorEventLoop ` specific limits:
90
99
@@ -95,9 +104,10 @@ Common limits of Windows event loops:
95
104
not supported
96
105
97
106
The resolution of the monotonic clock on Windows is usually around 15.6 msec.
98
- The best resolution is 0.5 msec. The exact resolution depends on the hardware
99
- (availability of HPET) and the Windows configuration. See :ref: `asyncio delayed
100
- calls <asyncio-delayed-calls>`.
107
+ The best resolution is 0.5 msec. The resolution depends on the hardware
108
+ (availability of `HPET
109
+ <http://fr.wikipedia.org/wiki/High_Precision_Event_Timer> `_) and on the Windows
110
+ configuration. See :ref: `asyncio delayed calls <asyncio-delayed-calls >`.
101
111
102
112
103
113
Mac OS X
0 commit comments