diff options
author | Florian Dold <florian@dold.me> | 2021-06-22 13:52:28 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-06-22 13:52:28 +0200 |
commit | e35c2f581b49f6441b6f75bb9ce0a1677d5fb46f (patch) | |
tree | 1e94c19f47e6f4461977a5d2ee536439092acbb2 /packages/taler-wallet-core/src/common.ts | |
parent | 7383b89cabbfdb8f2fbd6bb9e7b64d09385f7bea (diff) | |
download | wallet-core-e35c2f581b49f6441b6f75bb9ce0a1677d5fb46f.tar.gz wallet-core-e35c2f581b49f6441b6f75bb9ce0a1677d5fb46f.tar.bz2 wallet-core-e35c2f581b49f6441b6f75bb9ce0a1677d5fb46f.zip |
simplify task loop, test coin suspension
Diffstat (limited to 'packages/taler-wallet-core/src/common.ts')
-rw-r--r-- | packages/taler-wallet-core/src/common.ts | 10 |
1 files changed, 8 insertions, 2 deletions
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<void>; + + /** + * Asynchronous condition to interrupt the sleep of the + * retry loop. + * + * Used to allow processing of new work faster. + */ + latch: AsyncCondition; listeners: NotificationListener[]; |