Top "Python-asyncio" questions

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

How to combine python asyncio with threads?

I have successfully built a RESTful microservice with Python asyncio and aiohttp that listens to a POST event to collect …

python multithreading python-asyncio aiohttp
How to use 'yield' inside async function?

I want to use generator yield and async functions. I read this topic, and wrote next code: import asyncio async …

python yield python-3.5 python-asyncio
multiprocessing vs multithreading vs asyncio in Python 3

I found that in Python 3.4 there are few different libraries for multiprocessing/threading: multiprocessing vs threading vs asyncio. But I …

python multithreading python-3.x multiprocessing python-asyncio
Async fixtures with pytest

How do I define async fixtures and use them in async tests? The following code, all in the same file, …

python-3.x pytest python-asyncio pytest-aiohttp pytest-asyncio
Asyncio Event Loop is Closed

When trying to run the asyncio hello world code example given in the docs: import asyncio async def hello_world(): …

python python-asyncio
Please explain "Task was destroyed but it is pending!"

Python 3.4.2 I am learning asyncio and I use it to continously listen IPC bus, while gbulb listens to the dbus. …

python python-3.x python-3.4 python-asyncio
Read file line by line with asyncio

I wish to read several log files as they are written and process their input with asyncio. The code will …

python python-asyncio
Permission System for Discord.py Bot

I am in the process of making a discord bot using discord.py and asyncio. The bot has commands like …

python python-3.x python-asyncio discord discord.py
Asyncio two loops for different I/O tasks?

I am using Python3 Asyncio module to create a load balancing application. I have two heavy IO tasks: A SNMP …

python python-3.x python-asyncio
Difference between coroutine and future/task in Python 3.5?

Let's say we have a dummy function: async def foo(arg): result = await some_remote_call(arg) return result.upper() …

python python-3.x python-asyncio