LIRC libraries
Linux Infrared Remote Control
|
Asynchronous read interface on top of an AbstractConnection. More...
Public Member Functions | |
__init__ (self, AbstractConnection connection, asyncio.AbstractEventLoop loop) | |
close (self) | |
Clean up loop and the base connection. | |
str | readline (self) |
__aiter__ (self) | |
Return async iterator. | |
__anext__ (self) | |
__aenter__ (self) | |
__aexit__ (self, exc_type, exc, traceback) |
Protected Attributes | |
_conn = connection | |
_loop = loop | |
_queue = asyncio.Queue() |
Asynchronous read interface on top of an AbstractConnection.
Definition at line 53 of file async_client.py.
lirc.async_client.AsyncConnection.__init__ | ( | self, | |
AbstractConnection | connection, | ||
asyncio.AbstractEventLoop | loop ) |
Definition at line 55 of file async_client.py.
lirc.async_client.AsyncConnection.__aenter__ | ( | self | ) |
Implement "async with".
Definition at line 95 of file async_client.py.
lirc.async_client.AsyncConnection.__aexit__ | ( | self, | |
exc_type, | |||
exc, | |||
traceback ) |
Implement exit from "async with".
Definition at line 99 of file async_client.py.
lirc.async_client.AsyncConnection.__aiter__ | ( | self | ) |
Return async iterator.
Definition at line 85 of file async_client.py.
lirc.async_client.AsyncConnection.__anext__ | ( | self | ) |
Implement async iterator.next().
Definition at line 88 of file async_client.py.
lirc.async_client.AsyncConnection.close | ( | self | ) |
Clean up loop and the base connection.
Definition at line 74 of file async_client.py.
str lirc.async_client.AsyncConnection.readline | ( | self | ) |
Asynchronous get next line from the connection.
Definition at line 77 of file async_client.py.
|
protected |
Definition at line 68 of file async_client.py.
|
protected |
Definition at line 69 of file async_client.py.
|
protected |
Definition at line 70 of file async_client.py.