[Python-checkins] python/dist/src/Doc/lib libasyncore.tex, 1.14,
1.15
loewis at users.sourceforge.net
loewis at users.sourceforge.net
Thu Jun 3 05:18:37 EDT 2004
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16680/Doc/lib
Modified Files:
libasyncore.tex
Log Message:
Patch #957240: Add count parameter to asyncore.loop.
Index: libasyncore.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libasyncore.tex,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** libasyncore.tex 17 Sep 2002 15:19:12 -0000 1.14
--- libasyncore.tex 3 Jun 2004 09:18:34 -0000 1.15
***************
*** 45,62 ****
\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 \code{False}). The \var{map} parameter
! is a dictionary whose items are the channels to watch. As channels
! are closed they are deleted from their map. If \var{map} is
! omitted, a global map is used (this map is updated by the default
! class \method{__init__()}
! -- make sure you extend, rather than override, \method{__init__()}
! if you want to retain this behavior).
Channels (instances of \class{asyncore.dispatcher}, \class{asynchat.async_chat}
--- 45,62 ----
\begin{funcdesc}{loop}{\optional{timeout\optional{, use_poll\optional{,
! map\optional{,count}}}}}
! Enter a polling loop that terminates after count passes or all open
! channels have been closed. All arguments are optional. The \var(count)
! parameter defaults to infinity, resulting in the loop terminating only
! when all channels have been closed. 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
! \code{False}). The \var{map} parameter is a dictionary whose items are
! the channels to watch. As channels are closed they are deleted from their
! map. If \var{map} is omitted, a global map is used (this map is updated
! by the default class \method{__init__()} -- make sure you extend, rather
! than override, \method{__init__()} if you want to retain this behavior).
Channels (instances of \class{asyncore.dispatcher}, \class{asynchat.async_chat}
More information about the Python-checkins
mailing list