From a95671d886ffe3e80e34b9d08293448bd4aab189 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 18 Aug 2024 12:37:52 -0500 Subject: [PATCH] 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 * Update asyncio_blocking_operations.md * Update asyncio_blocking_operations.md * Update asyncio_blocking_operations.md --------- Co-authored-by: G Johansson --- docs/asyncio_blocking_operations.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/asyncio_blocking_operations.md b/docs/asyncio_blocking_operations.md index 348348ec..36169cee 100644 --- a/docs/asyncio_blocking_operations.md +++ b/docs/asyncio_blocking_operations.md @@ -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)