Skip to content

feat: add support for signals to prompts #340

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

Merged
merged 1 commit into from
Jun 3, 2025
Merged

feat: add support for signals to prompts #340

merged 1 commit into from
Jun 3, 2025

Conversation

43081j
Copy link
Collaborator

@43081j 43081j commented Jun 3, 2025

Adds support for signal to each of the prompts which do async work.

This means you can cancel a prompt by aborting the signal.

Fixes #337

Adds support for `signal` to each of the prompts which do async work.

This means you can cancel a prompt by aborting the signal.
Copy link

changeset-bot bot commented Jun 3, 2025

🦋 Changeset detected

Latest commit: 5c433db

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@43081j 43081j requested a review from dreyfus92 June 3, 2025 17:22
Copy link

pkg-pr-new bot commented Jun 3, 2025

@example/basic@example/changesets

npm i https://pkg.pr.new/bombshell-dev/clack/@clack/core@340
npm i https://pkg.pr.new/bombshell-dev/clack/@clack/prompts@340

commit: 5c433db

@43081j 43081j merged commit 9e5bc6c into main Jun 3, 2025
6 checks passed
@43081j 43081j deleted the tinfoil-hats branch June 3, 2025 18:53
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

Successfully merging this pull request may close these issues.

[Request] support signal / AbortController in @clack/prompts (not just @clack/core)
1 participant