textpieces icon indicating copy to clipboard operation
textpieces copied to clipboard

Async function hangs the entire program

Open sfknhagvkas opened this issue 2 years ago • 2 comments

Whenever I run custom script with async function Text Pieces hangs every time, until the script completes execution and then for a while.

image

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))

sfknhagvkas avatar May 30 '23 10:05 sfknhagvkas

This issue will be addressed in Text Pieces 4.0 that I'm going to release in the beginning of summer :)

liferooter avatar May 30 '23 11:05 liferooter

Unfortunately, my plans to release it in the beginning of summer were too brave, but it will be released soon

liferooter avatar Apr 25 '24 22:04 liferooter