mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
asyncore.loop() description contributed by Skip Montanaro.
This closes SF bug #489513.
This commit is contained in:
parent
d331cb5502
commit
d761662b66
1 changed files with 14 additions and 0 deletions
|
@ -56,6 +56,20 @@ network servers and clients a snap.
|
|||
\end{tableii}
|
||||
\end{classdesc}
|
||||
|
||||
\begin{funcdesc}{loop}{\optional{timeout\optional{, use_poll\optional{,
|
||||
map}}}}
|
||||
Enter a polling loop that only terminates after all open channels
|
||||
have been closed. All arguments are optional. The \var{timeout}
|
||||
argument sets the timeout parameter for the appropriate
|
||||
\function{select()} or \function{poll()} call, measured in seconds;
|
||||
the default is 30 seconds. The \var{use_poll} parameter, if true,
|
||||
indicates that \function{poll()} should be used in preference to
|
||||
\function{select()} (the default is false). The \var{map} parameter
|
||||
is a dictionary that gives a list of channels to watch. As channels
|
||||
are closed they are deleted from their map. If \var{map} is
|
||||
omitted, a global map is used.
|
||||
\end{funcdesc}
|
||||
|
||||
This set of user-level events is larger than the basics. The
|
||||
full set of methods that can be overridden in your subclass are:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue