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

Some design considerations #23

Closed
iBicha opened this issue Nov 7, 2022 · 0 comments
Closed

Some design considerations #23

iBicha opened this issue Nov 7, 2022 · 0 comments

Comments

@iBicha
Copy link
Contributor

iBicha commented Nov 7, 2022

I recently started using this library, and it's going great, loving lots of the built-in features!

But I'm also hitting some of the limitations that other libs of this kind don't face:

  • The ability to "build" the request, but not send it yet
  • Send the request in parallel with other requests

In short, sending a request today is doing everything in one shot: build a request, send, wait for a response.

This needs to potentially become 3 methods:

  • Request() (get()/post()/etc)
  • Send()
  • Await()

This way, it becomes possible to send multiple requests, and control the flow of blocking the UI until a request is ready. (And by blocking the UI I don't mean blocking the UI thread, I know this lib does async behind the scenes)

@iBicha iBicha closed this as completed Apr 7, 2023
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