Azure / azure-sdk-for-js

This repository is for active development of the Azure SDK for JavaScript (NodeJS & Browser). For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/javascript/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-js.
MIT License
2.03k stars 1.19k forks source link

[ai-form-recognizer] Replace the custom poller implementation with the new core LRO infrastructure. #25527

Open witemple-msft opened 1 year ago

witemple-msft commented 1 year ago

The current GA of Form Recognizer slightly predates the revamped core poller infrastructure, and we'd like to migrate to the new infrastructure for the next release.

This will allow us to remove a bunch of custom polling code and rely on the common polling implementation and ensure that we are correctly handling poller logic such as abort signals and retry-after.

witemple-msft commented 1 year ago

CC @deyaaeldeen

deyaaeldeen commented 1 year ago

This guide discusses the migration on a high-level: https://github.com/Azure/azure-sdk-for-js/wiki/Implementing-LROs-with-%60createHttpPoller%60. It would be great if you could help me enrich it with learnings from this work.