diff --git a/packages/autorest.typescript/test/rlcIntegration/generated/dpgCustomization/src/pollingHelper.ts b/packages/autorest.typescript/test/rlcIntegration/generated/dpgCustomization/src/pollingHelper.ts index 56c82213c0..c9ed24802d 100644 --- a/packages/autorest.typescript/test/rlcIntegration/generated/dpgCustomization/src/pollingHelper.ts +++ b/packages/autorest.typescript/test/rlcIntegration/generated/dpgCustomization/src/pollingHelper.ts @@ -105,7 +105,7 @@ export async function getLongRunningPoller( }, 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 @@ -114,7 +114,7 @@ export async function getLongRunningPoller( function abortListener(): void { abortController.abort(); } - const inputAbortSignal = options?.abortSignal; + const inputAbortSignal = pollOptions?.abortSignal; const abortSignal = abortController.signal; if (inputAbortSignal?.aborted) { abortController.abort(); diff --git a/packages/autorest.typescript/test/rlcIntegration/generated/lroRest/src/pollingHelper.ts b/packages/autorest.typescript/test/rlcIntegration/generated/lroRest/src/pollingHelper.ts index 56c82213c0..c9ed24802d 100644 --- a/packages/autorest.typescript/test/rlcIntegration/generated/lroRest/src/pollingHelper.ts +++ b/packages/autorest.typescript/test/rlcIntegration/generated/lroRest/src/pollingHelper.ts @@ -105,7 +105,7 @@ export async function getLongRunningPoller( }, 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 @@ -114,7 +114,7 @@ export async function getLongRunningPoller( function abortListener(): void { abortController.abort(); } - const inputAbortSignal = options?.abortSignal; + const inputAbortSignal = pollOptions?.abortSignal; const abortSignal = abortController.signal; if (inputAbortSignal?.aborted) { abortController.abort(); diff --git a/packages/autorest.typescript/test/rlcIntegration/generated/pagingRest/src/pollingHelper.ts b/packages/autorest.typescript/test/rlcIntegration/generated/pagingRest/src/pollingHelper.ts index 56c82213c0..c9ed24802d 100644 --- a/packages/autorest.typescript/test/rlcIntegration/generated/pagingRest/src/pollingHelper.ts +++ b/packages/autorest.typescript/test/rlcIntegration/generated/pagingRest/src/pollingHelper.ts @@ -105,7 +105,7 @@ export async function getLongRunningPoller( }, 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 @@ -114,7 +114,7 @@ export async function getLongRunningPoller( function abortListener(): void { abortController.abort(); } - const inputAbortSignal = options?.abortSignal; + const inputAbortSignal = pollOptions?.abortSignal; const abortSignal = abortController.signal; if (inputAbortSignal?.aborted) { abortController.abort(); diff --git a/packages/autorest.typescript/test/smoke/generated/agrifood-data-plane/src/pollingHelper.ts b/packages/autorest.typescript/test/smoke/generated/agrifood-data-plane/src/pollingHelper.ts index 56c82213c0..c9ed24802d 100644 --- a/packages/autorest.typescript/test/smoke/generated/agrifood-data-plane/src/pollingHelper.ts +++ b/packages/autorest.typescript/test/smoke/generated/agrifood-data-plane/src/pollingHelper.ts @@ -105,7 +105,7 @@ export async function getLongRunningPoller( }, 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 @@ -114,7 +114,7 @@ export async function getLongRunningPoller( function abortListener(): void { abortController.abort(); } - const inputAbortSignal = options?.abortSignal; + const inputAbortSignal = pollOptions?.abortSignal; const abortSignal = abortController.signal; if (inputAbortSignal?.aborted) { abortController.abort(); diff --git a/packages/autorest.typescript/test/smoke/generated/anomaly-detector-rest/src/pollingHelper.ts b/packages/autorest.typescript/test/smoke/generated/anomaly-detector-rest/src/pollingHelper.ts index 56c82213c0..c9ed24802d 100644 --- a/packages/autorest.typescript/test/smoke/generated/anomaly-detector-rest/src/pollingHelper.ts +++ b/packages/autorest.typescript/test/smoke/generated/anomaly-detector-rest/src/pollingHelper.ts @@ -105,7 +105,7 @@ export async function getLongRunningPoller( }, 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 @@ -114,7 +114,7 @@ export async function getLongRunningPoller( function abortListener(): void { abortController.abort(); } - const inputAbortSignal = options?.abortSignal; + const inputAbortSignal = pollOptions?.abortSignal; const abortSignal = abortController.signal; if (inputAbortSignal?.aborted) { abortController.abort(); diff --git a/packages/autorest.typescript/test/smoke/generated/synapse-artifacts-rest/src/pollingHelper.ts b/packages/autorest.typescript/test/smoke/generated/synapse-artifacts-rest/src/pollingHelper.ts index 56c82213c0..c9ed24802d 100644 --- a/packages/autorest.typescript/test/smoke/generated/synapse-artifacts-rest/src/pollingHelper.ts +++ b/packages/autorest.typescript/test/smoke/generated/synapse-artifacts-rest/src/pollingHelper.ts @@ -105,7 +105,7 @@ export async function getLongRunningPoller( }, 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 @@ -114,7 +114,7 @@ export async function getLongRunningPoller( function abortListener(): void { abortController.abort(); } - const inputAbortSignal = options?.abortSignal; + const inputAbortSignal = pollOptions?.abortSignal; const abortSignal = abortController.signal; if (inputAbortSignal?.aborted) { abortController.abort(); diff --git a/packages/rlc-common/src/static/pollingContent.ts b/packages/rlc-common/src/static/pollingContent.ts index bede9c5297..e258455ebf 100644 --- a/packages/rlc-common/src/static/pollingContent.ts +++ b/packages/rlc-common/src/static/pollingContent.ts @@ -124,7 +124,7 @@ export async function getLongRunningPoller( }, 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 @@ -133,7 +133,7 @@ export async function getLongRunningPoller( function abortListener(): void { abortController.abort(); } - const inputAbortSignal = options?.abortSignal; + const inputAbortSignal = pollOptions?.abortSignal; const abortSignal = abortController.signal; if (inputAbortSignal?.aborted) { abortController.abort(); diff --git a/packages/typespec-test/test/NetworkAnalytics.Management/generated/typespec-ts/src/rest/pollingHelper.ts b/packages/typespec-test/test/NetworkAnalytics.Management/generated/typespec-ts/src/rest/pollingHelper.ts index 6146930477..e6f2560975 100644 --- a/packages/typespec-test/test/NetworkAnalytics.Management/generated/typespec-ts/src/rest/pollingHelper.ts +++ b/packages/typespec-test/test/NetworkAnalytics.Management/generated/typespec-ts/src/rest/pollingHelper.ts @@ -219,7 +219,7 @@ export async function getLongRunningPoller( }, 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 @@ -228,7 +228,7 @@ export async function getLongRunningPoller( function abortListener(): void { abortController.abort(); } - const inputAbortSignal = options?.abortSignal; + const inputAbortSignal = pollOptions?.abortSignal; const abortSignal = abortController.signal; if (inputAbortSignal?.aborted) { abortController.abort(); diff --git a/packages/typespec-test/test/authoring/generated/typespec-ts/src/pollingHelper.ts b/packages/typespec-test/test/authoring/generated/typespec-ts/src/pollingHelper.ts index 80ee819c55..30fdbd54af 100644 --- a/packages/typespec-test/test/authoring/generated/typespec-ts/src/pollingHelper.ts +++ b/packages/typespec-test/test/authoring/generated/typespec-ts/src/pollingHelper.ts @@ -201,7 +201,7 @@ export async function getLongRunningPoller( }, 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 @@ -210,7 +210,7 @@ export async function getLongRunningPoller( function abortListener(): void { abortController.abort(); } - const inputAbortSignal = options?.abortSignal; + const inputAbortSignal = pollOptions?.abortSignal; const abortSignal = abortController.signal; if (inputAbortSignal?.aborted) { abortController.abort(); diff --git a/packages/typespec-test/test/contoso/generated/typespec-ts/src/pollingHelper.ts b/packages/typespec-test/test/contoso/generated/typespec-ts/src/pollingHelper.ts index 71382cf231..76542ba5d6 100644 --- a/packages/typespec-test/test/contoso/generated/typespec-ts/src/pollingHelper.ts +++ b/packages/typespec-test/test/contoso/generated/typespec-ts/src/pollingHelper.ts @@ -133,7 +133,7 @@ export async function getLongRunningPoller( }, 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 @@ -142,7 +142,7 @@ export async function getLongRunningPoller( function abortListener(): void { abortController.abort(); } - const inputAbortSignal = options?.abortSignal; + const inputAbortSignal = pollOptions?.abortSignal; const abortSignal = abortController.signal; if (inputAbortSignal?.aborted) { abortController.abort(); diff --git a/packages/typespec-test/test/faceai/generated/typespec-ts/src/pollingHelper.ts b/packages/typespec-test/test/faceai/generated/typespec-ts/src/pollingHelper.ts index 8695dc555e..69ec7c20b3 100644 --- a/packages/typespec-test/test/faceai/generated/typespec-ts/src/pollingHelper.ts +++ b/packages/typespec-test/test/faceai/generated/typespec-ts/src/pollingHelper.ts @@ -235,7 +235,7 @@ export async function getLongRunningPoller( }, 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 @@ -244,7 +244,7 @@ export async function getLongRunningPoller( function abortListener(): void { abortController.abort(); } - const inputAbortSignal = options?.abortSignal; + const inputAbortSignal = pollOptions?.abortSignal; const abortSignal = abortController.signal; if (inputAbortSignal?.aborted) { abortController.abort(); diff --git a/packages/typespec-test/test/healthInsights_radiologyinsights/generated/typespec-ts/src/pollingHelper.ts b/packages/typespec-test/test/healthInsights_radiologyinsights/generated/typespec-ts/src/pollingHelper.ts index d39b102bb5..23f60648de 100644 --- a/packages/typespec-test/test/healthInsights_radiologyinsights/generated/typespec-ts/src/pollingHelper.ts +++ b/packages/typespec-test/test/healthInsights_radiologyinsights/generated/typespec-ts/src/pollingHelper.ts @@ -117,7 +117,7 @@ export async function getLongRunningPoller( }, 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 @@ -126,7 +126,7 @@ export async function getLongRunningPoller( function abortListener(): void { abortController.abort(); } - const inputAbortSignal = options?.abortSignal; + const inputAbortSignal = pollOptions?.abortSignal; const abortSignal = abortController.signal; if (inputAbortSignal?.aborted) { abortController.abort(); diff --git a/packages/typespec-test/test/healthInsights_trialmatcher/generated/typespec-ts/src/pollingHelper.ts b/packages/typespec-test/test/healthInsights_trialmatcher/generated/typespec-ts/src/pollingHelper.ts index 664f6a2e38..40b0a90f41 100644 --- a/packages/typespec-test/test/healthInsights_trialmatcher/generated/typespec-ts/src/pollingHelper.ts +++ b/packages/typespec-test/test/healthInsights_trialmatcher/generated/typespec-ts/src/pollingHelper.ts @@ -121,7 +121,7 @@ export async function getLongRunningPoller( }, 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 @@ -130,7 +130,7 @@ export async function getLongRunningPoller( function abortListener(): void { abortController.abort(); } - const inputAbortSignal = options?.abortSignal; + const inputAbortSignal = pollOptions?.abortSignal; const abortSignal = abortController.signal; if (inputAbortSignal?.aborted) { abortController.abort(); diff --git a/packages/typespec-test/test/loadTest/generated/typespec-ts/src/pollingHelper.ts b/packages/typespec-test/test/loadTest/generated/typespec-ts/src/pollingHelper.ts index 4b79865fe8..19a90195ba 100644 --- a/packages/typespec-test/test/loadTest/generated/typespec-ts/src/pollingHelper.ts +++ b/packages/typespec-test/test/loadTest/generated/typespec-ts/src/pollingHelper.ts @@ -123,7 +123,7 @@ export async function getLongRunningPoller( }, 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 @@ -132,7 +132,7 @@ export async function getLongRunningPoller( function abortListener(): void { abortController.abort(); } - const inputAbortSignal = options?.abortSignal; + const inputAbortSignal = pollOptions?.abortSignal; const abortSignal = abortController.signal; if (inputAbortSignal?.aborted) { abortController.abort(); diff --git a/packages/typespec-test/test/loadtesting_modular/generated/typespec-ts/src/rest/pollingHelper.ts b/packages/typespec-test/test/loadtesting_modular/generated/typespec-ts/src/rest/pollingHelper.ts index 4b79865fe8..19a90195ba 100644 --- a/packages/typespec-test/test/loadtesting_modular/generated/typespec-ts/src/rest/pollingHelper.ts +++ b/packages/typespec-test/test/loadtesting_modular/generated/typespec-ts/src/rest/pollingHelper.ts @@ -123,7 +123,7 @@ export async function getLongRunningPoller( }, 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 @@ -132,7 +132,7 @@ export async function getLongRunningPoller( function abortListener(): void { abortController.abort(); } - const inputAbortSignal = options?.abortSignal; + const inputAbortSignal = pollOptions?.abortSignal; const abortSignal = abortController.signal; if (inputAbortSignal?.aborted) { abortController.abort(); diff --git a/packages/typespec-test/test/openai/generated/typespec-ts/src/pollingHelper.ts b/packages/typespec-test/test/openai/generated/typespec-ts/src/pollingHelper.ts index 5517559590..2db7933264 100644 --- a/packages/typespec-test/test/openai/generated/typespec-ts/src/pollingHelper.ts +++ b/packages/typespec-test/test/openai/generated/typespec-ts/src/pollingHelper.ts @@ -121,7 +121,7 @@ export async function getLongRunningPoller( }, 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 @@ -130,7 +130,7 @@ export async function getLongRunningPoller( function abortListener(): void { abortController.abort(); } - const inputAbortSignal = options?.abortSignal; + const inputAbortSignal = pollOptions?.abortSignal; const abortSignal = abortController.signal; if (inputAbortSignal?.aborted) { abortController.abort(); diff --git a/packages/typespec-test/test/widget_dpg/generated/typespec-ts/src/rest/pollingHelper.ts b/packages/typespec-test/test/widget_dpg/generated/typespec-ts/src/rest/pollingHelper.ts index 774cb10a5b..0884bc7b40 100644 --- a/packages/typespec-test/test/widget_dpg/generated/typespec-ts/src/rest/pollingHelper.ts +++ b/packages/typespec-test/test/widget_dpg/generated/typespec-ts/src/rest/pollingHelper.ts @@ -155,7 +155,7 @@ export async function getLongRunningPoller( }, 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 @@ -164,7 +164,7 @@ export async function getLongRunningPoller( function abortListener(): void { abortController.abort(); } - const inputAbortSignal = options?.abortSignal; + const inputAbortSignal = pollOptions?.abortSignal; const abortSignal = abortController.signal; if (inputAbortSignal?.aborted) { abortController.abort(); diff --git a/packages/typespec-ts/test/integration/generated/azure/core/lro/rpc/src/pollingHelper.ts b/packages/typespec-ts/test/integration/generated/azure/core/lro/rpc/src/pollingHelper.ts index 76947c01ea..7c465efbcb 100644 --- a/packages/typespec-ts/test/integration/generated/azure/core/lro/rpc/src/pollingHelper.ts +++ b/packages/typespec-ts/test/integration/generated/azure/core/lro/rpc/src/pollingHelper.ts @@ -117,7 +117,7 @@ export async function getLongRunningPoller( }, 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 @@ -126,7 +126,7 @@ export async function getLongRunningPoller( function abortListener(): void { abortController.abort(); } - const inputAbortSignal = options?.abortSignal; + const inputAbortSignal = pollOptions?.abortSignal; const abortSignal = abortController.signal; if (inputAbortSignal?.aborted) { abortController.abort(); diff --git a/packages/typespec-ts/test/integration/generated/azure/core/lro/standard/src/pollingHelper.ts b/packages/typespec-ts/test/integration/generated/azure/core/lro/standard/src/pollingHelper.ts index 1081b4cee7..97b67826cb 100644 --- a/packages/typespec-ts/test/integration/generated/azure/core/lro/standard/src/pollingHelper.ts +++ b/packages/typespec-ts/test/integration/generated/azure/core/lro/standard/src/pollingHelper.ts @@ -143,7 +143,7 @@ export async function getLongRunningPoller( }, 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 @@ -152,7 +152,7 @@ export async function getLongRunningPoller( function abortListener(): void { abortController.abort(); } - const inputAbortSignal = options?.abortSignal; + const inputAbortSignal = pollOptions?.abortSignal; const abortSignal = abortController.signal; if (inputAbortSignal?.aborted) { abortController.abort(); diff --git a/packages/typespec-ts/test/modularIntegration/generated/azure/core/lro/rpc/generated/src/rest/pollingHelper.ts b/packages/typespec-ts/test/modularIntegration/generated/azure/core/lro/rpc/generated/src/rest/pollingHelper.ts index 76947c01ea..7c465efbcb 100644 --- a/packages/typespec-ts/test/modularIntegration/generated/azure/core/lro/rpc/generated/src/rest/pollingHelper.ts +++ b/packages/typespec-ts/test/modularIntegration/generated/azure/core/lro/rpc/generated/src/rest/pollingHelper.ts @@ -117,7 +117,7 @@ export async function getLongRunningPoller( }, 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 @@ -126,7 +126,7 @@ export async function getLongRunningPoller( function abortListener(): void { abortController.abort(); } - const inputAbortSignal = options?.abortSignal; + const inputAbortSignal = pollOptions?.abortSignal; const abortSignal = abortController.signal; if (inputAbortSignal?.aborted) { abortController.abort(); diff --git a/packages/typespec-ts/test/modularIntegration/generated/azure/core/lro/standard/generated/src/rest/pollingHelper.ts b/packages/typespec-ts/test/modularIntegration/generated/azure/core/lro/standard/generated/src/rest/pollingHelper.ts index 1081b4cee7..97b67826cb 100644 --- a/packages/typespec-ts/test/modularIntegration/generated/azure/core/lro/standard/generated/src/rest/pollingHelper.ts +++ b/packages/typespec-ts/test/modularIntegration/generated/azure/core/lro/standard/generated/src/rest/pollingHelper.ts @@ -143,7 +143,7 @@ export async function getLongRunningPoller( }, 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 @@ -152,7 +152,7 @@ export async function getLongRunningPoller( function abortListener(): void { abortController.abort(); } - const inputAbortSignal = options?.abortSignal; + const inputAbortSignal = pollOptions?.abortSignal; const abortSignal = abortController.signal; if (inputAbortSignal?.aborted) { abortController.abort();