Closed Sherlouk closed 1 year ago
Thank you @aronbudinszky for reviewing and @Sherlouk for the PR
Can you confirm there is no breaking for the user? 😊 Is this change worth adding some documentation to the README? Or is ti really "usage transparent"?
This is not a breaking change, no. I do think it's worth updating documentation with a quick example, but it is also obvious when using.
I've updated documentation, tweaked implementation, and opened up the PR. This does only add support for one API (search), but if we're happy then I can either:
Clem, thoughts?
My opinion would be #1 or #2 as the async code is very repetitive and so shouldn't be a chore to review (though large) - but might get confusing if mixed in with other features. This'll help to get support quickly to the project. I might do some test refactoring too to enable reuse but validate all behaviour.
Let's go with #1, not with #3 indeed 😄
Btw retroactively confirming there is no breaking change. :)
Pull Request
⚠️ I've marked this as draft as it current works to provide an example of how we could add async/await support to the library. I am more than happy to expand this to all currently supported APIs.
Related issue
Relates to #332 (doesn't close as only adds support for one API)
What does this PR do?
PR checklist
Please check if your PR fulfills the following requirements:
Thank you so much for contributing to Meilisearch!