aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/internal-wallet-state.ts
diff options
context:
space:
mode:
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.