Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interruption feature request #132

Open
vanya2h opened this issue Feb 11, 2025 · 1 comment
Open

Interruption feature request #132

vanya2h opened this issue Feb 11, 2025 · 1 comment

Comments

@vanya2h
Copy link

vanya2h commented Feb 11, 2025

First of all thank you for this beautiful implementation of cli prompts!

Recently I've faced a problem that some of my integrations doesn't give me a chance to use async or promise api. It leads me to the documentation just to check whether this lib supports interruption of user input and output (something like node.js' did with fs lib) and... I found nothing.

So, I'll be very short: Are you planning to support this feature? (in case it's technically possible, idk)
Thank you!

@vanya2h
Copy link
Author

vanya2h commented Feb 11, 2025

Update: Found a solution for my case — top-level await. But I wouldn't say it's universal solution since it requires you to be on es modules.

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

No branches or pull requests

1 participant