Top "Python-asyncio" questions

This tag is to be used for the asyncio Python package which provides mechanisms for writing single-threaded concurrent code.

Python - how to run multiple coroutines concurrently using asyncio?

I'm using the websockets library to create a websocket server in Python 3.4. Here's a simple echo server: import asyncio import …

python python-3.x websocket python-asyncio
How to check a SSL certificate expiration date with aiohttp?

I know how to get certificate information such as expiration date using pyopenssl for instance, but is it possible to …

python ssl-certificate python-asyncio aiohttp
Does asyncio supports asynchronous I/O for file operations?

Does asyncio supports asynchronous I/O for file operations? If yes, how I can use this in Python 3.5 with async/…

python python-3.x python-asyncio python-3.5
Graceful shutdown of asyncio coroutines

I'm currently having problems closing asyncio coroutines during the shutdown CTRL-C of an application. The following code is a stripped …

python python-asyncio
How does asyncio actually work?

This question is motivated by my another question: How to await in cdef? There are tons of articles and blog …

python python-3.x python-asyncio
Python 3.7 - asyncio.sleep() and time.sleep()

When I go to the asyncio page, the first example is a hello world program. When I run it on …

python python-3.x python-asyncio python-3.7
How do I write a sequence of promises in Python?

Is it possible to write a sequence of promise (or tasks) using only Python 3.6.1 Standard Library? For example, a sequence …

javascript python python-3.x promise python-asyncio
Combine awaitables like Promise.all

In asynchronous JavaScript, it is easy to run tasks in parallel and wait for all of them to complete using …

python python-3.x async-await future python-asyncio
What kind of problems (if any) would there be combining asyncio with multiprocessing?

As almost everyone is aware when they first look at threading in Python, there is the GIL that makes life …

python multithreading asynchronous multiprocessing python-asyncio
Send asyncio tasks to loop running in other thread

How can I asynchronously insert tasks to run in an asyncio event loop running in another thread? My motivation is …

python python-asyncio