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

[ Concurrent API calls ] #97

Open
Gobmichet opened this issue Feb 21, 2024 · 0 comments
Open

[ Concurrent API calls ] #97

Gobmichet opened this issue Feb 21, 2024 · 0 comments

Comments

@Gobmichet
Copy link

Hi,
Thanks for the work,

What about concurrent calls ? I mean let's say for the exemple :

  • I have a home_page.dart with 3 sections.
  • Each section is filled with datas coming from separate / specific API calls.
  • We then have smtg like this :
@override
  void initState() {
    super.initState();
    <ApiCall_1>
    <ApiCall_2>
    <ApiCall_3>
  }

Won't this provoke refresh tokens infinite loop ?
How to handle this ?
How does your lib handle this ?

'cause Queue.lock( ) / .unlock( ) that would intervene on [ Error 401 ("token-expired") ] would trigger too late so...

Thanks in advance (^_^)

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

1 participant