From 60fde75c05835a91ae002ffe0e2d3dc41a64c0e7 Mon Sep 17 00:00:00 2001 From: David Farr Date: Wed, 8 May 2024 11:57:56 -0700 Subject: [PATCH] Switch ordering of comments too --- lib/core/promises/promises.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/promises/promises.ts b/lib/core/promises/promises.ts index d3631b4..7b77fc4 100644 --- a/lib/core/promises/promises.ts +++ b/lib/core/promises/promises.ts @@ -394,8 +394,8 @@ export class DurablePromise { /** * Polls the Durable Promise store to sychronize the state, stops when the promise is complete. - * @param frequency - The frequency in ms to poll. * @param timeout - The time at which to stop polling if the promise is still pending. + * @param frequency - The frequency in ms to poll. * @returns A Promise that resolves when the Durable Promise is complete. */ async sync(timeout: number = Infinity, frequency: number = 5000): Promise { @@ -431,8 +431,8 @@ export class DurablePromise { /** * Polls the Durable Promise store, and returns the value when the Durable Promise is complete. - * @param frequency - The frequency in ms to poll. * @param timeout - The time at which to stop polling if the promise is still pending. + * @param frequency - The frequency in ms to poll. * @returns The promise value, or throws an error. */ async wait(timeout: number = Infinity, frequency: number = 5000): Promise {