liferooter / textpieces

Quick text processing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Async function hangs the entire program

sfknhagvkas opened this issue · 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))

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

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