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

How to reduce timeout or deadline? #92

Closed
Barbapapazes opened this issue Nov 9, 2022 · 1 comment
Closed

How to reduce timeout or deadline? #92

Barbapapazes opened this issue Nov 9, 2022 · 1 comment

Comments

@Barbapapazes
Copy link

Hello,

Is there a way to reduce the timeout (or deadline) time? Actually, it's 30 seconds and way to long for my purpose.

Thanks!

@smnbbrv
Copy link
Owner

smnbbrv commented Nov 9, 2022

Hi, this relates to the client implementation you use. You can however unsubscribe from observable after let's say 10s which would be your desired timeout. Unsubscribe terminates (cancels) the request which is exactly what the timeout would do. You can either do it directly on subscription or use some of rxjs pipes

@smnbbrv smnbbrv closed this as completed Nov 28, 2022
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

2 participants