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

Rename parameter name in pollingHelper to fix lint error #2582

Merged
merged 3 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
},
sendPollRequest: async (
path: string,
options?: { abortSignal?: AbortSignalLike },
pollOptions?: { abortSignal?: AbortSignalLike },
) => {
// This is the callback that is going to be called to poll the service
// to get the latest status. We use the client provided and the polling path
Expand All @@ -114,7 +114,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
function abortListener(): void {
abortController.abort();
}
const inputAbortSignal = options?.abortSignal;
const inputAbortSignal = pollOptions?.abortSignal;
const abortSignal = abortController.signal;
if (inputAbortSignal?.aborted) {
abortController.abort();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
},
sendPollRequest: async (
path: string,
options?: { abortSignal?: AbortSignalLike },
pollOptions?: { abortSignal?: AbortSignalLike },
) => {
// This is the callback that is going to be called to poll the service
// to get the latest status. We use the client provided and the polling path
Expand All @@ -114,7 +114,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
function abortListener(): void {
abortController.abort();
}
const inputAbortSignal = options?.abortSignal;
const inputAbortSignal = pollOptions?.abortSignal;
const abortSignal = abortController.signal;
if (inputAbortSignal?.aborted) {
abortController.abort();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
},
sendPollRequest: async (
path: string,
options?: { abortSignal?: AbortSignalLike },
pollOptions?: { abortSignal?: AbortSignalLike },
) => {
// This is the callback that is going to be called to poll the service
// to get the latest status. We use the client provided and the polling path
Expand All @@ -114,7 +114,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
function abortListener(): void {
abortController.abort();
}
const inputAbortSignal = options?.abortSignal;
const inputAbortSignal = pollOptions?.abortSignal;
const abortSignal = abortController.signal;
if (inputAbortSignal?.aborted) {
abortController.abort();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
},
sendPollRequest: async (
path: string,
options?: { abortSignal?: AbortSignalLike },
pollOptions?: { abortSignal?: AbortSignalLike },
) => {
// This is the callback that is going to be called to poll the service
// to get the latest status. We use the client provided and the polling path
Expand All @@ -114,7 +114,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
function abortListener(): void {
abortController.abort();
}
const inputAbortSignal = options?.abortSignal;
const inputAbortSignal = pollOptions?.abortSignal;
const abortSignal = abortController.signal;
if (inputAbortSignal?.aborted) {
abortController.abort();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
},
sendPollRequest: async (
path: string,
options?: { abortSignal?: AbortSignalLike },
pollOptions?: { abortSignal?: AbortSignalLike },
) => {
// This is the callback that is going to be called to poll the service
// to get the latest status. We use the client provided and the polling path
Expand All @@ -114,7 +114,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
function abortListener(): void {
abortController.abort();
}
const inputAbortSignal = options?.abortSignal;
const inputAbortSignal = pollOptions?.abortSignal;
const abortSignal = abortController.signal;
if (inputAbortSignal?.aborted) {
abortController.abort();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
},
sendPollRequest: async (
path: string,
options?: { abortSignal?: AbortSignalLike },
pollOptions?: { abortSignal?: AbortSignalLike },
) => {
// This is the callback that is going to be called to poll the service
// to get the latest status. We use the client provided and the polling path
Expand All @@ -114,7 +114,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
function abortListener(): void {
abortController.abort();
}
const inputAbortSignal = options?.abortSignal;
const inputAbortSignal = pollOptions?.abortSignal;
const abortSignal = abortController.signal;
if (inputAbortSignal?.aborted) {
abortController.abort();
Expand Down
4 changes: 2 additions & 2 deletions packages/rlc-common/src/static/pollingContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
},
sendPollRequest: async (
path: string,
options?: { abortSignal?: AbortSignalLike }
pollOptions?: { abortSignal?: AbortSignalLike }
) => {
// This is the callback that is going to be called to poll the service
// to get the latest status. We use the client provided and the polling path
Expand All @@ -133,7 +133,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
function abortListener(): void {
abortController.abort();
}
const inputAbortSignal = options?.abortSignal;
const inputAbortSignal = pollOptions?.abortSignal;
const abortSignal = abortController.signal;
if (inputAbortSignal?.aborted) {
abortController.abort();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
},
sendPollRequest: async (
path: string,
options?: { abortSignal?: AbortSignalLike },
pollOptions?: { abortSignal?: AbortSignalLike },
) => {
// This is the callback that is going to be called to poll the service
// to get the latest status. We use the client provided and the polling path
Expand All @@ -228,7 +228,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
function abortListener(): void {
abortController.abort();
}
const inputAbortSignal = options?.abortSignal;
const inputAbortSignal = pollOptions?.abortSignal;
const abortSignal = abortController.signal;
if (inputAbortSignal?.aborted) {
abortController.abort();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
},
sendPollRequest: async (
path: string,
options?: { abortSignal?: AbortSignalLike },
pollOptions?: { abortSignal?: AbortSignalLike },
) => {
// This is the callback that is going to be called to poll the service
// to get the latest status. We use the client provided and the polling path
Expand All @@ -210,7 +210,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
function abortListener(): void {
abortController.abort();
}
const inputAbortSignal = options?.abortSignal;
const inputAbortSignal = pollOptions?.abortSignal;
const abortSignal = abortController.signal;
if (inputAbortSignal?.aborted) {
abortController.abort();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
},
sendPollRequest: async (
path: string,
options?: { abortSignal?: AbortSignalLike },
pollOptions?: { abortSignal?: AbortSignalLike },
) => {
// This is the callback that is going to be called to poll the service
// to get the latest status. We use the client provided and the polling path
Expand All @@ -142,7 +142,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
function abortListener(): void {
abortController.abort();
}
const inputAbortSignal = options?.abortSignal;
const inputAbortSignal = pollOptions?.abortSignal;
const abortSignal = abortController.signal;
if (inputAbortSignal?.aborted) {
abortController.abort();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
},
sendPollRequest: async (
path: string,
options?: { abortSignal?: AbortSignalLike },
pollOptions?: { abortSignal?: AbortSignalLike },
) => {
// This is the callback that is going to be called to poll the service
// to get the latest status. We use the client provided and the polling path
Expand All @@ -244,7 +244,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
function abortListener(): void {
abortController.abort();
}
const inputAbortSignal = options?.abortSignal;
const inputAbortSignal = pollOptions?.abortSignal;
const abortSignal = abortController.signal;
if (inputAbortSignal?.aborted) {
abortController.abort();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
},
sendPollRequest: async (
path: string,
options?: { abortSignal?: AbortSignalLike },
pollOptions?: { abortSignal?: AbortSignalLike },
) => {
// This is the callback that is going to be called to poll the service
// to get the latest status. We use the client provided and the polling path
Expand All @@ -126,7 +126,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
function abortListener(): void {
abortController.abort();
}
const inputAbortSignal = options?.abortSignal;
const inputAbortSignal = pollOptions?.abortSignal;
const abortSignal = abortController.signal;
if (inputAbortSignal?.aborted) {
abortController.abort();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
},
sendPollRequest: async (
path: string,
options?: { abortSignal?: AbortSignalLike },
pollOptions?: { abortSignal?: AbortSignalLike },
) => {
// This is the callback that is going to be called to poll the service
// to get the latest status. We use the client provided and the polling path
Expand All @@ -130,7 +130,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
function abortListener(): void {
abortController.abort();
}
const inputAbortSignal = options?.abortSignal;
const inputAbortSignal = pollOptions?.abortSignal;
const abortSignal = abortController.signal;
if (inputAbortSignal?.aborted) {
abortController.abort();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
},
sendPollRequest: async (
path: string,
options?: { abortSignal?: AbortSignalLike },
pollOptions?: { abortSignal?: AbortSignalLike },
) => {
// This is the callback that is going to be called to poll the service
// to get the latest status. We use the client provided and the polling path
Expand All @@ -132,7 +132,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
function abortListener(): void {
abortController.abort();
}
const inputAbortSignal = options?.abortSignal;
const inputAbortSignal = pollOptions?.abortSignal;
const abortSignal = abortController.signal;
if (inputAbortSignal?.aborted) {
abortController.abort();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
},
sendPollRequest: async (
path: string,
options?: { abortSignal?: AbortSignalLike },
pollOptions?: { abortSignal?: AbortSignalLike },
) => {
// This is the callback that is going to be called to poll the service
// to get the latest status. We use the client provided and the polling path
Expand All @@ -132,7 +132,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
function abortListener(): void {
abortController.abort();
}
const inputAbortSignal = options?.abortSignal;
const inputAbortSignal = pollOptions?.abortSignal;
const abortSignal = abortController.signal;
if (inputAbortSignal?.aborted) {
abortController.abort();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
},
sendPollRequest: async (
path: string,
options?: { abortSignal?: AbortSignalLike },
pollOptions?: { abortSignal?: AbortSignalLike },
) => {
// This is the callback that is going to be called to poll the service
// to get the latest status. We use the client provided and the polling path
Expand All @@ -130,7 +130,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
function abortListener(): void {
abortController.abort();
}
const inputAbortSignal = options?.abortSignal;
const inputAbortSignal = pollOptions?.abortSignal;
const abortSignal = abortController.signal;
if (inputAbortSignal?.aborted) {
abortController.abort();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
},
sendPollRequest: async (
path: string,
options?: { abortSignal?: AbortSignalLike },
pollOptions?: { abortSignal?: AbortSignalLike },
) => {
// This is the callback that is going to be called to poll the service
// to get the latest status. We use the client provided and the polling path
Expand All @@ -164,7 +164,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
function abortListener(): void {
abortController.abort();
}
const inputAbortSignal = options?.abortSignal;
const inputAbortSignal = pollOptions?.abortSignal;
const abortSignal = abortController.signal;
if (inputAbortSignal?.aborted) {
abortController.abort();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
},
sendPollRequest: async (
path: string,
options?: { abortSignal?: AbortSignalLike },
pollOptions?: { abortSignal?: AbortSignalLike },
) => {
// This is the callback that is going to be called to poll the service
// to get the latest status. We use the client provided and the polling path
Expand All @@ -126,7 +126,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
function abortListener(): void {
abortController.abort();
}
const inputAbortSignal = options?.abortSignal;
const inputAbortSignal = pollOptions?.abortSignal;
const abortSignal = abortController.signal;
if (inputAbortSignal?.aborted) {
abortController.abort();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
},
sendPollRequest: async (
path: string,
options?: { abortSignal?: AbortSignalLike },
pollOptions?: { abortSignal?: AbortSignalLike },
) => {
// This is the callback that is going to be called to poll the service
// to get the latest status. We use the client provided and the polling path
Expand All @@ -152,7 +152,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
function abortListener(): void {
abortController.abort();
}
const inputAbortSignal = options?.abortSignal;
const inputAbortSignal = pollOptions?.abortSignal;
const abortSignal = abortController.signal;
if (inputAbortSignal?.aborted) {
abortController.abort();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
},
sendPollRequest: async (
path: string,
options?: { abortSignal?: AbortSignalLike },
pollOptions?: { abortSignal?: AbortSignalLike },
) => {
// This is the callback that is going to be called to poll the service
// to get the latest status. We use the client provided and the polling path
Expand All @@ -126,7 +126,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
function abortListener(): void {
abortController.abort();
}
const inputAbortSignal = options?.abortSignal;
const inputAbortSignal = pollOptions?.abortSignal;
const abortSignal = abortController.signal;
if (inputAbortSignal?.aborted) {
abortController.abort();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
},
sendPollRequest: async (
path: string,
options?: { abortSignal?: AbortSignalLike },
pollOptions?: { abortSignal?: AbortSignalLike },
) => {
// This is the callback that is going to be called to poll the service
// to get the latest status. We use the client provided and the polling path
Expand All @@ -152,7 +152,7 @@ export async function getLongRunningPoller<TResult extends HttpResponse>(
function abortListener(): void {
abortController.abort();
}
const inputAbortSignal = options?.abortSignal;
const inputAbortSignal = pollOptions?.abortSignal;
const abortSignal = abortController.signal;
if (inputAbortSignal?.aborted) {
abortController.abort();
Expand Down
Loading