diff options
author | Florian Dold <florian@dold.me> | 2023-07-01 00:52:14 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-07-01 00:52:14 +0200 |
commit | f93ab03a1b946af441e35b9c057f129d25311273 (patch) | |
tree | 063624453ae0b6a38f859bd530ab0a1e29db93fb /packages/taler-wallet-core/src/internal-wallet-state.ts | |
parent | 7a18e12a175856b3d17d2bb70ec549004c281ff5 (diff) | |
download | wallet-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.ts | 6 |
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. |