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

[notification-hubs] Moving to core-lro v3 #31002

Merged
merged 2 commits into from
Sep 5, 2024
Merged

[notification-hubs] Moving to core-lro v3 #31002

merged 2 commits into from
Sep 5, 2024

Conversation

mpodwysocki
Copy link
Member

@mpodwysocki mpodwysocki commented Sep 5, 2024

Packages impacted by this PR

  • @azure/notification-hubs

Issues associated with this PR

Describe the problem that is addressed by this PR

Moves @azure/notification-hubs to @azure/core-lro v3

What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?

Are there test cases added in this PR? (If not, why?)

Provide a list of related PRs (if any)

Command used to generate this PR:**(Applicable only to SDK release request PRs)

Checklists

  • Added impacted package name to the issue description
  • Does this PR needs any fixes in the SDK Generator?** (If so, create an Issue in the Autorest/typescript repository and link it here)
  • Added a changelog (if necessary)

@azure-sdk
Copy link
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

@azure/notification-hubs

@mpodwysocki mpodwysocki merged commit f169f9e into main Sep 5, 2024
14 checks passed
@mpodwysocki mpodwysocki deleted the feat/nhub-lro branch September 5, 2024 22:03
const abortController = new AbortController();
const currentPollIntervalInMs = polledOperationOptions.updateIntervalInMs ?? 2000;

const poller: SimplePollerLike<OperationState<NotificationHubJob>, NotificationHubJob> = {
async poll(options?: { abortSignal?: AbortSignalLike }): Promise<void> {
const poller: PollerLike<OperationState<NotificationHubJob>, NotificationHubJob> = {
Copy link
Member

Choose a reason for hiding this comment

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

just curious why not leverage the buildCreatePoller from core-lro directly

export function buildCreatePoller<TResponse, TResult, TState extends OperationState<TResult>>(

Copy link
Member Author

Choose a reason for hiding this comment

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

It's not exported at the top level of core-lro, hence why it cannot be used.

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.

4 participants