diff options
author | Florian Dold <florian@dold.me> | 2022-09-23 18:56:21 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-09-23 20:38:26 +0200 |
commit | 72336b149b4c27715e4e2f7610ec4007ecccdbd9 (patch) | |
tree | f209095fc98fd47d4681499662276f4cde5486ba /packages/taler-wallet-core/src/internal-wallet-state.ts | |
parent | 9811e19252ef859099fa5c16d703808f6c778a94 (diff) | |
download | wallet-core-72336b149b4c27715e4e2f7610ec4007ecccdbd9.tar.xz |
wallet-core: do not block when accepting a manual withdrawal
Diffstat (limited to 'packages/taler-wallet-core/src/internal-wallet-state.ts')
-rw-r--r-- | packages/taler-wallet-core/src/internal-wallet-state.ts | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/packages/taler-wallet-core/src/internal-wallet-state.ts b/packages/taler-wallet-core/src/internal-wallet-state.ts index ad6afe3c3..b8415a469 100644 --- a/packages/taler-wallet-core/src/internal-wallet-state.ts +++ b/packages/taler-wallet-core/src/internal-wallet-state.ts @@ -127,6 +127,12 @@ export interface RecoupOperations { export type NotificationListener = (n: WalletNotification) => void; +export interface ActiveLongpollInfo { + [opId: string]: { + cancel: () => void; + }; +} + /** * Internal, shard wallet state that is used by the implementation * of wallet operations. @@ -135,12 +141,10 @@ export type NotificationListener = (n: WalletNotification) => void; * as it's an opaque implementation detail. */ export interface InternalWalletState { - memoProcessReserve: AsyncOpMemoMap<void>; - memoMakePlanchet: AsyncOpMemoMap<void>; - memoGetPending: AsyncOpMemoSingle<PendingOperationsResponse>; - memoGetBalance: AsyncOpMemoSingle<BalancesResponse>; - memoProcessRefresh: AsyncOpMemoMap<void>; - memoProcessRecoup: AsyncOpMemoMap<void>; + /** + * Active longpoll operations. + */ + activeLongpoll: ActiveLongpollInfo; cryptoApi: TalerCryptoInterface; |