Skip to content

Commit

Permalink
Switch ordering of comments too
Browse files Browse the repository at this point in the history
  • Loading branch information
dfarr committed May 8, 2024
1 parent 481bb21 commit 60fde75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/core/promises/promises.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ export class DurablePromise<T> {

/**
* 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<void> {
Expand Down Expand Up @@ -431,8 +431,8 @@ export class DurablePromise<T> {

/**
* 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<T> {
Expand Down

0 comments on commit 60fde75

Please sign in to comment.