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

add FetchContext FetchOpt #1651

Open
fredwangwang opened this issue Jun 17, 2024 · 0 comments
Open

add FetchContext FetchOpt #1651

fredwangwang opened this issue Jun 17, 2024 · 0 comments
Assignees
Labels
proposal Enhancement idea or proposal

Comments

@fredwangwang
Copy link

Proposed change

Currently the new js.Fetch can only take a max wait time through FetchMaxWait. I have a use case where I want to cancel my fetch (and return whatever has been fetched) as soon as the context has been cancelled. This would allows better control and intergation with calling function that has a context that passed in.

Use case

Better integration with other components that works with Context.

Contribution

sure thing.

@fredwangwang fredwangwang added the proposal Enhancement idea or proposal label Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal Enhancement idea or proposal
Projects
None yet
Development

No branches or pull requests

2 participants