Replies: 1 comment 1 reply
-
Hi @wtruppel, since You could use it like so: case .buttonTapped:
return environment.apiClient.fetch()
.timeout(5, scheduler: environment.mainQueue)
.catchToEffect() You can also use the Also, if you use a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey folks, I'd like to suggest that you add support for effect time-outs.
Say that I have an effect that makes an API call that could hang for a while. It would be nice if it could be automatically cancelled after some user-defined time has run without getting a response, possibly firing a user-defined action so that the reducer can respond to the original effect having timed out.
Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions