Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upDocs: Explain cancellation better #225
Open
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I still don't get how cancellation works with prompts.
Pressing
Ctrl+Cwill throw an emptyString. How am I supposed to know that the prompt has been cancelled? Or to ask it differently, under which circumstance can the prompt throw too so I can distinguish between cancel (empty string) and other exceptions?