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

Make possible to pass a cancellation token #46

Open
francotiveron opened this issue Apr 3, 2023 · 1 comment
Open

Make possible to pass a cancellation token #46

francotiveron opened this issue Apr 3, 2023 · 1 comment

Comments

@francotiveron
Copy link
Contributor

francotiveron commented Apr 3, 2023

I propose to add an option to the configuration to generate code with CancellationToken for asynchronous calls.
For example, asyncReturnType could have 4 possible values instead of 2:
["asyncReturnType"]: <"async" | "task" | "async-ct" | "task-ct">

@francotiveron
Copy link
Contributor Author

francotiveron commented Apr 4, 2023

See #47
Please note that, while this work for me, It probably needs more extensive testing.

If accepted, the readme needs also to be updated. (Happy to do that).

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