core: more poller doc
This commit is contained in:
parent
499e7273d1
commit
5f5396bcb2
|
@ -1711,16 +1711,16 @@ class Poller(object):
|
||||||
@property
|
@property
|
||||||
def readers(self):
|
def readers(self):
|
||||||
"""
|
"""
|
||||||
Return a list of tuples of the form `(fd, data)` for every FD
|
Return a list of `(fd, data)` tuples for every FD registered for
|
||||||
registered for receive readiness.
|
receive readiness.
|
||||||
"""
|
"""
|
||||||
return list((fd, data) for fd, (data, gen) in self._rfds.items())
|
return list((fd, data) for fd, (data, gen) in self._rfds.items())
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def writers(self):
|
def writers(self):
|
||||||
"""
|
"""
|
||||||
Return a list of tuples of the form `(fd, data)` for every FD
|
Return a list of `(fd, data)` tuples for every FD registered for
|
||||||
registered for transmit readiness.
|
transmit readiness.
|
||||||
"""
|
"""
|
||||||
return list((fd, data) for fd, (data, gen) in self._wfds.items())
|
return list((fd, data) for fd, (data, gen) in self._wfds.items())
|
||||||
|
|
||||||
|
@ -1738,7 +1738,8 @@ class Poller(object):
|
||||||
|
|
||||||
def stop_receive(self, fd):
|
def stop_receive(self, fd):
|
||||||
"""
|
"""
|
||||||
Stop emitting readability events for `fd`.
|
Stop emitting readability events for `fd`. Redundant calls to
|
||||||
|
:meth:`stop_receive` are silently ignored, this may change in future.
|
||||||
"""
|
"""
|
||||||
self._rfds.pop(fd, None)
|
self._rfds.pop(fd, None)
|
||||||
|
|
||||||
|
@ -1750,7 +1751,8 @@ class Poller(object):
|
||||||
|
|
||||||
def stop_transmit(self, fd):
|
def stop_transmit(self, fd):
|
||||||
"""
|
"""
|
||||||
Stop emitting writability events for `fd`.
|
Stop emitting writeability events for `fd`. Redundant calls to
|
||||||
|
:meth:`stop_transmit` are silently ignored, this may change in future.
|
||||||
"""
|
"""
|
||||||
self._wfds.pop(fd, None)
|
self._wfds.pop(fd, None)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue