summaryrefslogtreecommitdiff
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.ts23
1 files changed, 2 insertions, 21 deletions
diff --git a/packages/taler-wallet-core/src/internal-wallet-state.ts b/packages/taler-wallet-core/src/internal-wallet-state.ts
index fdf04a65f..4379f20b5 100644
--- a/packages/taler-wallet-core/src/internal-wallet-state.ts
+++ b/packages/taler-wallet-core/src/internal-wallet-state.ts
@@ -31,16 +31,14 @@
*/
import { IDBFactory } from "@gnu-taler/idb-bridge";
import {
- CoinRefreshRequest,
DenominationInfo,
- RefreshGroupId,
- RefreshReason,
TransactionState,
WalletNotification,
} from "@gnu-taler/taler-util";
import { HttpRequestLibrary } from "@gnu-taler/taler-util/http";
import { TalerCryptoInterface } from "./crypto/cryptoImplementation.js";
import { WalletStoresV1 } from "./db.js";
+import { TaskScheduler } from "./shepherd.js";
import { AsyncCondition } from "./util/promiseUtils.js";
import {
DbAccess,
@@ -78,12 +76,6 @@ export interface RecoupOperations {
export type NotificationListener = (n: WalletNotification) => void;
-export interface ActiveLongpollInfo {
- [opId: string]: {
- cancel: () => void;
- };
-}
-
export type CancelFn = () => void;
/**
@@ -94,11 +86,6 @@ export type CancelFn = () => void;
* as it's an opaque implementation detail.
*/
export interface InternalWalletState {
- /**
- * Active longpoll operations.
- */
- activeLongpoll: ActiveLongpollInfo;
-
cryptoApi: TalerCryptoInterface;
timerGroup: TimerGroup;
@@ -106,13 +93,7 @@ export interface InternalWalletState {
config: Readonly<WalletConfig>;
- /**
- * Asynchronous condition to interrupt the sleep of the
- * retry loop.
- *
- * Used to allow processing of new work faster.
- */
- workAvailable: AsyncCondition;
+ taskScheduler: TaskScheduler;
listeners: NotificationListener[];