Skip to content

Commit 2671470

Browse files
committed
Do not overwrite read_loop when using asyncio
1 parent 60b590a commit 2671470

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎evdev/eventio_async.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ def async_read(self):
3333
self._do_when_readable(lambda: future.set_result(self.read()))
3434
return future
3535

36-
def read_loop(self):
36+
def read_iter(self):
3737
'''
38-
Enter an endless loop that yields input events.
38+
Return an iterator that yields input events. This iterator is
39+
compatible with the ``async for`` syntax
3940
40-
The returned iterator is compatible with the ``async for`` syntax
4141
'''
4242
return ReadIterator(self)
4343

0 commit comments

Comments
 (0)