mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-04-29 15:57:15 +00:00
Document new blocking operations that can be detected being called in event loop (#2273)
* Document new blocking operations that can be detected being called in the event loop * Update asyncio_blocking_operations.md Co-authored-by: G Johansson <goran.johansson@shiftit.se> * Update asyncio_blocking_operations.md * Update asyncio_blocking_operations.md * Update asyncio_blocking_operations.md --------- Co-authored-by: G Johansson <goran.johansson@shiftit.se>
This commit is contained in:
parent
0df004a104
commit
a95671d886
@ -95,6 +95,22 @@ urllib does blocking I/O and should be run in the executor with the standard met
|
||||
|
||||
`os.stat` does blocking disk I/O and should be run in the executor with the standard methods above.
|
||||
|
||||
#### write_bytes
|
||||
|
||||
`write_bytes` does blocking disk I/O and should be run in the executor with the standard methods above.
|
||||
|
||||
#### write_text
|
||||
|
||||
`write_text` does blocking disk I/O and should be run in the executor with the standard methods above.
|
||||
|
||||
#### read_bytes
|
||||
|
||||
`read_bytes` does blocking disk I/O and should be run in the executor with the standard methods above.
|
||||
|
||||
#### read_text
|
||||
|
||||
`read_text` does blocking disk I/O and should be run in the executor with the standard methods above.
|
||||
|
||||
#### load_default_certs
|
||||
|
||||
`SSLContext.load_default_certs` does blocking disk I/O to load the certificates from disk.
|
||||
@ -108,3 +124,7 @@ The following helpers ensure that the blocking I/O will happen in the executor:
|
||||
#### load_verify_locations
|
||||
|
||||
See [load_default_certs](#load_default_certs)
|
||||
|
||||
#### load_cert_chain
|
||||
|
||||
See [load_default_certs](#load_cert_chain)
|
||||
|
Loading…
x
Reference in New Issue
Block a user