aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util/src
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-05-16 01:28:44 +0200
committerFlorian Dold <florian@dold.me>2024-05-16 01:28:44 +0200
commit98c188c1b14f73a6b81f41a0cacd6195bb53208e (patch)
tree74894c4672501d5b30ea91bb0745f0bfe89d5f14 /packages/taler-util/src
parentaa39162de0bba9b7673db5214012efee1ea61f15 (diff)
downloadwallet-core-98c188c1b14f73a6b81f41a0cacd6195bb53208e.tar.xz
-move config value to not break UI code
Diffstat (limited to 'packages/taler-util/src')
-rw-r--r--packages/taler-util/src/wallet-types.ts12
1 files changed, 11 insertions, 1 deletions
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts
index 4f971319a..4e2e08a8b 100644
--- a/packages/taler-util/src/wallet-types.ts
+++ b/packages/taler-util/src/wallet-types.ts
@@ -487,6 +487,7 @@ export interface PartialWalletRunConfig {
builtin?: Partial<WalletRunConfig["builtin"]>;
testing?: Partial<WalletRunConfig["testing"]>;
features?: Partial<WalletRunConfig["features"]>;
+ lazyTaskLoop?: Partial<WalletRunConfig["lazyTaskLoop"]>;
}
export interface WalletRunConfig {
@@ -520,8 +521,17 @@ export interface WalletRunConfig {
*/
features: {
allowHttp: boolean;
- lazyTaskLoop: boolean;
};
+
+ /**
+ * Start processing tasks only when explicitly required, even after
+ * init has been called.
+ *
+ * Useful when the wallet is started to make single read-only request,
+ * as otherwise wallet-core starts making network request and process
+ * unrelated pending tasks.
+ */
+ lazyTaskLoop: boolean;
}
export interface InitRequest {