All Questions
4 questions
0
votes
0
answers
88
views
WebSocket Closes Unexpectedly in TTS Service with Multiprocessing and Asyncio
I am developing a TTS (Text-to-Speech) service using multiprocessing and asyncio in Python. My main application integrates other components using queue.
However, I'm encountering an issue where the ...
0
votes
0
answers
27
views
How can I run a function multiple times at once in parallel from within a asyncio loop - All attempts have been concurrent so far [duplicate]
I am listening into a websocket, when data is received, each item within that packet is examined by a function. I need to get the function to run multiple times at once (in parallel) to speed up the ...
0
votes
1
answer
92
views
Different Processes between websocket datastream and computational code
I have a datastream from multiple websockets and convert the necessary data to two lists(this whole part uses asyncio). I end up creating, updating and returning the lists like this:
class A:
def ...
5
votes
1
answer
10k
views
How to avoid blocking the asyncio event loop with looping functions
I'm using FastAPI with WebSockets to "push" SVGs to the client. The problem is: If iterations run continuously, they block the async event loop and the socket therefore can't listen to other ...