You can identify and log asyncio tasks that block the event loop for too long. Calling Python functions in asyncio programs rather than awaiting …
Continue Reading about Asyncio Log Long-Running Blocking Calls With aiodebug →
Tutorials on the asyncio module for concurrency in Python.
by Jason Brownlee in Python Asyncio
You can identify and log asyncio tasks that block the event loop for too long. Calling Python functions in asyncio programs rather than awaiting …
Continue Reading about Asyncio Log Long-Running Blocking Calls With aiodebug →
by Jason Brownlee in Python Asyncio
Asyncio tasks can suppress requests to be canceled and actively consume CancelledError exceptions. Although consuming CancelledError exceptions is …
Continue Reading about Asyncio CancelledError Can Be Consumed →
by Jason Brownlee in Python Asyncio
You can suppress CancelledError exceptions in asyncio by handling them within the task or in the caller that canceled the task. Alternatively, they …
Continue Reading about 4 Ways to Suppress Asyncio CancelledError →
by Jason Brownlee in Python Asyncio
You can identify common problems in asyncio programs using popular Python static analysis tools such as pylint and flake8. In this tutorial, you …
Continue Reading about How to Lint (Static Analysis) Asyncio Code →
by Jason Brownlee in Python Asyncio
You may get a warning when running your asyncio program that looks like: "RuntimeWarning: Enable tracemalloc to get the object allocation …
Continue Reading about RuntimeWarning: Enable tracemalloc to get the object allocation traceback →
by Jason Brownlee in Python Asyncio
You can log exceptions in asyncio programs by calling logging.exception() within tasks or when awaiting tasks. We can also configure the event loop …
by Jason Brownlee in Python Asyncio
You can configure, suppress, and log warnings emitted by asyncio programs. By default, the asyncio event loop will emit warnings in situations that …
Continue Reading about Configure, Suppress, and Log Asyncio Warnings →
by Jason Brownlee in Python Asyncio
You can log to a file from an asyncio program by initializing the Python logging infrastructure and configuring it to use a FileHandler. In this …
by Jason Brownlee in Python Asyncio
You can develop a daemon asyncio task that runs in the background by running a coroutine in the background. Background asyncio tasks will be …
What if you could develop Python programs that were asynchronous from the start?
The asyncio module provides easy-to-use coroutine-based concurrency for asynchronous programming.
Introducing: "Python Asyncio Jump-Start".
A new book designed to teach you the asyncio module step-by-step, super fast!