GithubHelp home page GithubHelp logo

Comments (6)

CodingAleCR avatar CodingAleCR commented on June 2, 2024

Hi, I think there's no way to asynchronously wait a few seconds before retrying at the moment.

This makes me think I should make shouldAttemptRetryOnException into a Future<bool> so that it supports this kind of behaviors and then you could maybe use Future.delayed in these cases (that might make the request stay "loading" until it is either resolved or rejected, which is something to look out for).

from http_interceptor.

ntimesc avatar ntimesc commented on June 2, 2024

Hi, I think there's no way to asynchronously wait a few seconds before retrying at the moment.

This makes me think I should make shouldAttemptRetryOnException into a Future<bool> so that it supports this kind of behaviors and then you could maybe use Future.delayed in these cases (that might make the request stay "loading" until it is either resolved or rejected, which is something to look out for).

So when can we have this feature available :)

from http_interceptor.

CodingAleCR avatar CodingAleCR commented on June 2, 2024

It should be available in beta.6, which is already in the automation pipeline as I'm writing this.

from http_interceptor.

CodingAleCR avatar CodingAleCR commented on June 2, 2024

It's now out 🎉 I'm closing this but feel free to comment if it does not work as you expected 😉

from http_interceptor.

CodingAleCR avatar CodingAleCR commented on June 2, 2024

@all-contributors add @ntimesc for ideas

from http_interceptor.

allcontributors avatar allcontributors commented on June 2, 2024

@CodingAleCR

I've put up a pull request to add @ntimesc! 🎉

from http_interceptor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.