timeoutWhen operator #5972
eternalmatt
started this conversation in
Ideas / Feature request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Feature Request
I have this feature to show the user a countdown timer of their expiring authentication if they do not take further actions. Consider a Bank login window, or some shopping card window requesting your action. The timeout value is dynamic. You need to take action every 15 minutes, but even while doing that you will be forcefully logged out at 45 minutes.
My widget should a poll a "keep alive" service while the user is active. This service returns the time remaining.
Is your feature request related to a problem? Please describe.
I have one existing Observable, and
after a period of inactivity, which is changing based up my existing observable,
I want to switch to another Observable
Describe the solution you'd like
Describe alternatives you've considered
timeoutWith
is a great operator, unfortunately my value is dynamic.(If this is new operator request) describe reason it should be core operator
There are other use-cases of "When" operators: retryWhen, repeatWhen, delayWhen
Additional context
time=0; action, timeToLogout = 15 min
time=10; action; timeToLogout = 15 min
time=20; action timeToLogout = 15 min
time=30; action timeToLogout = 15 min
time=40; action timeToLogout = 5 min
time=45; error or complete
Beta Was this translation helpful? Give feedback.
All reactions