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:
J. Nick Koston 2024-08-18 12:37:52 -05:00 committed by GitHub
parent 0df004a104
commit a95671d886
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)