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

feat: context for all api related calls #387

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

Tinyblargon
Copy link
Collaborator

@Tinyblargon Tinyblargon commented Dec 5, 2024

Add context.Context to every part of the call stack that leads up to *Session.NewRequest()
This change allows users to specify their own context, making it possible to gracefully exit the application with ^c.

Used a background context in the old cli to keep the same behavior.

Used a cancel-able context in the new cli, Context().

Closes #383

@Tinyblargon Tinyblargon added type/feature Completely new functionality. modifies/go Pull requests that update Go code size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files test/done This PR has been tested and the result was succesfull labels Dec 5, 2024
@Tinyblargon Tinyblargon self-assigned this Dec 5, 2024
@Tinyblargon Tinyblargon merged commit 976ef50 into Telmate:master Dec 5, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
modifies/go Pull requests that update Go code size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files test/done This PR has been tested and the result was succesfull type/feature Completely new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feat: implement context.Context
1 participant