Classes | |
| class | BlockedCalls |
| class | BlockingCall |
Functions | |
| bool | _check_file_allowed (dict[str, Any] mapped_args) |
| bool | _check_import_call_allowed (dict[str, Any] mapped_args) |
| bool | _check_sleep_call_allowed (dict[str, Any] mapped_args) |
| None | enable () |
Variables | |
| _BLOCKED_CALLS = BlockedCalls(set()) | |
| string | _IN_TESTS = "unittest" in sys.modules |
| tuple | ALLOWED_FILE_PREFIXES = ("/proc",) |
Block blocking calls being done in asyncio.
|
private |
Definition at line 31 of file block_async_io.py.
|
private |
Definition at line 26 of file block_async_io.py.
|
private |
Definition at line 38 of file block_async_io.py.
| None homeassistant.block_async_io.enable | ( | ) |
Enable the detection of blocking calls in the event loop.
Definition at line 233 of file block_async_io.py.
|
private |
Definition at line 230 of file block_async_io.py.
|
private |
Definition at line 21 of file block_async_io.py.
| tuple homeassistant.block_async_io.ALLOWED_FILE_PREFIXES = ("/proc",) |
Definition at line 23 of file block_async_io.py.