# always raises; that's how the with-statement works.
pass
+ @coroutine
def __iter__(self):
# This is not a coroutine. It is meant to enable the idiom:
#
def __exit__(self, *args):
pass
+ @coroutine
def __iter__(self):
# See comment in Lock.__iter__().
yield from self.acquire()
def __exit__(self, *args):
pass
+ @coroutine
def __iter__(self):
# See comment in Lock.__iter__().
yield from self.acquire()
else:
self._paused = True
+ @coroutine
def _wait_for_data(self, func_name):
"""Wait until feed_data() or feed_eof() is called."""
# StreamReader uses a future to link the protocol feed_data() method