diff options
author | Florian Dold <florian@dold.me> | 2024-05-16 01:28:44 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-05-16 01:28:44 +0200 |
commit | 98c188c1b14f73a6b81f41a0cacd6195bb53208e (patch) | |
tree | 74894c4672501d5b30ea91bb0745f0bfe89d5f14 /packages/taler-util/src | |
parent | aa39162de0bba9b7673db5214012efee1ea61f15 (diff) | |
download | wallet-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.ts | 12 |
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 { |