From e35c2f581b49f6441b6f75bb9ce0a1677d5fb46f Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 22 Jun 2021 13:52:28 +0200 Subject: simplify task loop, test coin suspension --- packages/taler-wallet-core/src/common.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'packages/taler-wallet-core/src/common.ts') diff --git a/packages/taler-wallet-core/src/common.ts b/packages/taler-wallet-core/src/common.ts index 128138eb2..b0b975e7b 100644 --- a/packages/taler-wallet-core/src/common.ts +++ b/packages/taler-wallet-core/src/common.ts @@ -116,9 +116,15 @@ export interface InternalWalletState { cryptoApi: CryptoApi; timerGroup: TimerGroup; - latch: AsyncCondition; stopped: boolean; - memoRunRetryLoop: AsyncOpMemoSingle; + + /** + * Asynchronous condition to interrupt the sleep of the + * retry loop. + * + * Used to allow processing of new work faster. + */ + latch: AsyncCondition; listeners: NotificationListener[]; -- cgit v1.2.3