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

Async function hangs the entire program #128

@sfknhagvkas

Description

@sfknhagvkas

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions