aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/internal-wallet-state.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-07-01 00:52:14 +0200
committerFlorian Dold <florian@dold.me>2023-07-01 00:52:14 +0200
commitf93ab03a1b946af441e35b9c057f129d25311273 (patch)
tree063624453ae0b6a38f859bd530ab0a1e29db93fb /packages/taler-wallet-core/src/internal-wallet-state.ts
parent7a18e12a175856b3d17d2bb70ec549004c281ff5 (diff)
downloadwallet-core-f93ab03a1b946af441e35b9c057f129d25311273.tar.xz
wallet-core: get rid of internal runUntilDone usages
Diffstat (limited to 'packages/taler-wallet-core/src/internal-wallet-state.ts')
-rw-r--r--packages/taler-wallet-core/src/internal-wallet-state.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/internal-wallet-state.ts b/packages/taler-wallet-core/src/internal-wallet-state.ts
index a2ca34a86..742af89a8 100644
--- a/packages/taler-wallet-core/src/internal-wallet-state.ts
+++ b/packages/taler-wallet-core/src/internal-wallet-state.ts
@@ -145,6 +145,8 @@ export interface ActiveLongpollInfo {
};
}
+export type CancelFn = () => void;
+
/**
* Internal, shared wallet state that is used by the implementation
* of wallet operations.
@@ -206,7 +208,7 @@ export interface InternalWalletState {
notify(n: WalletNotification): void;
- addNotificationListener(f: (n: WalletNotification) => void): void;
+ addNotificationListener(f: (n: WalletNotification) => void): CancelFn;
/**
* Stop ongoing processing.
@@ -219,8 +221,6 @@ export interface InternalWalletState {
*/
runSequentialized<T>(tokens: string[], f: () => Promise<T>): Promise<T>;
- runUntilDone(req?: { maxRetries?: number }): Promise<void>;
-
/**
* Ensure that a task loop is currently running.
* Starts one if no task loop is running.