From d286eeb2ea380d6e1c2e360916dc3c0407dc5145 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Wed, 19 Dec 2018 21:49:26 +0000 Subject: [PATCH] core: more Poller docs --- mitogen/core.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mitogen/core.py b/mitogen/core.py index 4ca36bc4..58a40d3a 100644 --- a/mitogen/core.py +++ b/mitogen/core.py @@ -1732,26 +1732,26 @@ class Poller(object): def start_receive(self, fd, data=None): """ - Cause :meth:`poll` to emit `data` when `fd` is readable. + Cause :meth:`poll` to yield `data` when `fd` is readable. """ self._rfds[fd] = (data or fd, self._generation) def stop_receive(self, fd): """ - Stop emitting readability events for `fd`. Redundant calls to + Stop yielding readability events for `fd`. Redundant calls to :meth:`stop_receive` are silently ignored, this may change in future. """ self._rfds.pop(fd, None) def start_transmit(self, fd, data=None): """ - Cause :meth:`poll` to emit `data` when `fd` is writeable. + Cause :meth:`poll` to yield `data` when `fd` is writeable. """ self._wfds[fd] = (data or fd, self._generation) def stop_transmit(self, fd): """ - Stop emitting writeability events for `fd`. Redundant calls to + Stop yielding writeability events for `fd`. Redundant calls to :meth:`stop_transmit` are silently ignored, this may change in future. """ self._wfds.pop(fd, None)