Async function hangs the entire program
sfknhagvkas opened this issue · comments
sfknhagvkas commented
Whenever I run custom script with async function Text Pieces hangs every time, until the script completes execution and then for a while.
It would be cool you could add some spinning indicator to show that it's processing, instead of hanging every time.
Example of the code that hangs process
#!/usr/bin/env python3
from sys import stdin, stdout, stderr, argv
from bing import generate
import asyncio
input_string = stdin.read()
asyncio.run(generate(input_string))
Gleb Smirnov commented
This issue will be addressed in Text Pieces 4.0 that I'm going to release in the beginning of summer :)
Gleb Smirnov commented
Unfortunately, my plans to release it in the beginning of summer were too brave, but it will be released soon