aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/pending-types.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-10-07 14:23:23 +0200
committerFlorian Dold <florian@dold.me>2022-10-07 14:23:23 +0200
commita93a0cae131da4c3dd3f30ac5300f16f759758ff (patch)
tree6cc17143bc2e30965a459419fbf5c23b321a6303 /packages/taler-wallet-core/src/pending-types.ts
parent1256c8704b11faceb21629cd50813ef2b7b9015b (diff)
downloadwallet-core-a93a0cae131da4c3dd3f30ac5300f16f759758ff.tar.xz
wallet-core: fix busy wait when long-polling for manual withdrawal
Diffstat (limited to 'packages/taler-wallet-core/src/pending-types.ts')
-rw-r--r--packages/taler-wallet-core/src/pending-types.ts11
1 files changed, 10 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/pending-types.ts b/packages/taler-wallet-core/src/pending-types.ts
index 61c7136df..5e0000b53 100644
--- a/packages/taler-wallet-core/src/pending-types.ts
+++ b/packages/taler-wallet-core/src/pending-types.ts
@@ -26,7 +26,6 @@
*/
import {
TalerErrorDetail,
- BalancesResponse,
AbsoluteTime,
TalerProtocolTimestamp,
} from "@gnu-taler/taler-util";
@@ -204,6 +203,16 @@ export interface PendingTaskInfoCommon {
givesLifeness: boolean;
/**
+ * Operation is active and waiting for a longpoll result.
+ */
+ isLongpolling: boolean;
+
+ /**
+ * Operation is waiting to be executed.
+ */
+ isDue: boolean;
+
+ /**
* Timestamp when the pending operation should be executed next.
*/
timestampDue: AbsoluteTime;