summaryrefslogtreecommitdiff
path: root/packages/taler-util
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-04-22 23:29:07 +0200
committerFlorian Dold <florian@dold.me>2024-04-22 23:29:07 +0200
commita181ee06e4b52cb35e00ff8c86acff315135faf2 (patch)
tree9961ae277d861f93818c253e3992ad25128f6377 /packages/taler-util
parente944c27e43474e8db464fbc593607e4e9d89576d (diff)
downloadwallet-core-a181ee06e4b52cb35e00ff8c86acff315135faf2.tar.gz
wallet-core-a181ee06e4b52cb35e00ff8c86acff315135faf2.tar.bz2
wallet-core-a181ee06e4b52cb35e00ff8c86acff315135faf2.zip
wallet-core: unify handling of run-until-done, simplify waiter implementation
Diffstat (limited to 'packages/taler-util')
-rw-r--r--packages/taler-util/src/notifications.ts8
-rw-r--r--packages/taler-util/src/wallet-types.ts10
2 files changed, 7 insertions, 11 deletions
diff --git a/packages/taler-util/src/notifications.ts b/packages/taler-util/src/notifications.ts
index 1c6ca4b85..b60fb267c 100644
--- a/packages/taler-util/src/notifications.ts
+++ b/packages/taler-util/src/notifications.ts
@@ -32,6 +32,7 @@ export enum NotificationType {
TransactionStateTransition = "transaction-state-transition",
WithdrawalOperationTransition = "withdrawal-operation-transition",
ExchangeStateTransition = "exchange-state-transition",
+ Idle = "idle",
TaskObservabilityEvent = "task-observability-event",
RequestObservabilityEvent = "request-observability-event",
}
@@ -230,6 +231,10 @@ export interface WithdrawalOperationTransitionNotification {
uri: string;
}
+export interface IdleNotification {
+ type: NotificationType.Idle;
+}
+
export type WalletNotification =
| BalanceChangeNotification
| WithdrawalOperationTransitionNotification
@@ -237,4 +242,5 @@ export type WalletNotification =
| ExchangeStateTransitionNotification
| TransactionStateTransitionNotification
| TaskProgressNotification
- | RequestProgressNotification;
+ | RequestProgressNotification
+ | IdleNotification;
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts
index 0653bc473..d39eb3ce9 100644
--- a/packages/taler-util/src/wallet-types.ts
+++ b/packages/taler-util/src/wallet-types.ts
@@ -3213,16 +3213,6 @@ export const codecForRemoveGlobalCurrencyAuditorRequest =
.property("auditorPub", codecForString())
.build("RemoveGlobalCurrencyAuditorRequest");
-export interface RetryLoopOpts {
- /**
- * Stop the retry loop when all lifeness-giving pending operations
- * are done.
- *
- * Defaults to false.
- */
- stopWhenDone?: boolean;
-}
-
/**
* Information about one provider.
*