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

Update Quick Search Docs for 1.3.0 to use new async fetchItems API #1

Merged
merged 1 commit into from Jul 15, 2019

Conversation

jschmidt42
Copy link
Contributor

In Quick Search 1.3.0, fetchItems now need to return an IEnumerable to work with async results. I updated this quicksearch doc extension to support this new API.

Quick Search 1.3.0 should be released by the end of day (7/12/2019)

@jschmidt42
Copy link
Contributor Author

@sttz, @SebGrenier please review

result
));
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sttz in case you would not want at all the async version of fetchItems you could simply return null at the end of the lambda assigned to fetchItems and continue to fill the items list. Filling items works as before where items are piped synchronously.

@sttz sttz merged commit d87d27e into sttz:master Jul 15, 2019
@sttz
Copy link
Owner

sttz commented Jul 15, 2019

Thanks!

Is there a specific reason why you return null from GetSearchResults instead of continuing to the next result?

Also, are all items first loaded asynchronously before they are displayed or would it be beneficial to return better results first so they can be shown faster?

@SebGrenier
Copy link

@sttz We try to yield as much as we can and as soon as possible to prevent blocking the UI. Even though it's an "async" API, it is still done on the main thread (during the application's update function).

We do not wait before showing the results, so returning better results first would definitely help!

Hope that helps!

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

Successfully merging this pull request may close these issues.

None yet

3 participants