diff options
Diffstat (limited to 'packages/taler-wallet-core/src/util/retries.ts')
-rw-r--r-- | packages/taler-wallet-core/src/util/retries.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/util/retries.ts b/packages/taler-wallet-core/src/util/retries.ts index 5b6645924..a021087be 100644 --- a/packages/taler-wallet-core/src/util/retries.ts +++ b/packages/taler-wallet-core/src/util/retries.ts @@ -70,6 +70,12 @@ export namespace OperationAttemptResult { result: undefined, }; } + export function pendingEmpty(): OperationAttemptResult<unknown, unknown> { + return { + type: OperationAttemptResultType.Pending, + result: undefined, + }; + } } export interface OperationAttemptFinishedResult<T> { |