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

enhanced async support #1116

Open
althunibat opened this issue Dec 21, 2022 · 1 comment
Open

enhanced async support #1116

althunibat opened this issue Dec 21, 2022 · 1 comment
Labels
area-CLI Command-Line Interface feature

Comments

@althunibat
Copy link

althunibat commented Dec 21, 2022

few notes / enhancements that are recommended when handling async commands in a cli application.

When using async command in cli, it is recommended to add cancelation token to be passed to "ExecuteAsync" method
console methods both in and out directions / write and read to have async version similar to:
System.Console.Out.WriteLineAsync & System.Console.In.ReadLineAsync.

Thanks


Please upvote 👍 this issue if you are interested in it.

@FrankRay78
Copy link
Contributor

FrankRay78 commented Mar 7, 2024

Related to/the same as: #701, CLI Command RunAsync support passing in/propagating a CancelationToken

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-CLI Command-Line Interface feature
Projects
Status: Todo 🕑
Development

No branches or pull requests

2 participants