Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

Allow OpacApi functions to return intermediate results #607

Open
johan12345 opened this issue Dec 12, 2020 · 0 comments
Open

Allow OpacApi functions to return intermediate results #607

johan12345 opened this issue Dec 12, 2020 · 0 comments

Comments

@johan12345
Copy link
Collaborator

E.g. if the API is waiting for some slow AJAX requests for non-essential data (e.g. search result status) to load, it could already pass an intermediate result to the app, so that it can be displayed more quickly.

Our current idea how to implement this is to add an optional callback as a parameter to search (and other functions, such as searchGetPage and account) that allows the API to pass an "intermediate result" - so in this case, a SearchRequestResult without statuses - and then give the final result as the return value of the search function once all statuses are fetched.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant