Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Async function hangs the entire program #128

Open
sfknhagvkas opened this issue May 30, 2023 · 2 comments
Open

Async function hangs the entire program #128

sfknhagvkas opened this issue May 30, 2023 · 2 comments

Comments

@sfknhagvkas
Copy link

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))
@liferooter
Copy link
Owner

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

@liferooter
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants