diff --git a/packages/automerge-repo/src/helpers/pause.ts b/packages/automerge-repo/src/helpers/pause.ts index 95f0779cf..a8f92a878 100644 --- a/packages/automerge-repo/src/helpers/pause.ts +++ b/packages/automerge-repo/src/helpers/pause.ts @@ -3,16 +3,4 @@ export const pause = (t = 0) => new Promise(resolve => setTimeout(() => resolve(), t)) -export function rejectOnTimeout( - promise: Promise, - millis: number -): Promise { - return Promise.race([ - promise, - pause(millis).then(() => { - throw new Error("timeout exceeded") - }), - ]) -} - /* c8 ignore end */