async def corofunc():
            nonlocal called
            called = True
            return "some arbitrary value"
def buffer_updated(self, nbytes):
        self.transport.write(self.buffer[:nbytes])