Skip to content

Commit

Permalink
fixup! feat(vow): retriable tools
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman committed Oct 1, 2024
1 parent cb5845a commit 09980df
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/vow/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,15 @@ export type VowTools = {
fn: (...args: any[]) => Vow<Awaited<T>> | Awaited<T> | PromiseVow<T>,
) => Vow<Awaited<T>>;
makeVowKit: <T>() => VowKit<T>;
/**
* Create a function that retries the given function if the underlying
* async function rejects due to an upgrade disconnection. The return value
* of the created function is a vow that settles to the final retry result.
*
* @param fnZone the zone for the named function
* @param name base name to use in the zone
* @param fn the retried function
*/
retriable: <F extends (...args: any[]) => Promise<any>>(
fnZone: Zone,
name: string,
Expand Down

0 comments on commit 09980df

Please sign in to comment.