taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 9fd0fadf78a535721d0c9a78d3641abb1ea8720e
parent bd5e3a2bb6b8334d422d3eada2242f11595ea8a8
Author: Florian Dold <dold@taler.net>
Date:   Thu, 23 Jul 2026 03:24:33 +0200

wallet: drop now-unused cancelableLongPoll helper

Diffstat:
Mpackages/taler-wallet-core/src/common.ts | 15---------------
1 file changed, 0 insertions(+), 15 deletions(-)

diff --git a/packages/taler-wallet-core/src/common.ts b/packages/taler-wallet-core/src/common.ts @@ -1050,21 +1050,6 @@ export function requireExchangeTosAcceptedOrThrow( } /** - * Run a queued longpool fetch with cancellation token and timeout_ms - */ -export async function cancelableLongPoll( - wex: WalletExecutionContext, - url: URL, - opt?: HttpRequestOptions, -): Promise<HttpResponse> { - const longPoll = async (timeoutMs: number) => { - url.searchParams.set("timeout_ms", `${timeoutMs}`); - return cancelableFetch(wex, url, opt); - }; - return wex.ws.longpollQueue.run(url, wex.cancellationToken, longPoll); -} - -/** * Fetch with cancellation token */ export async function cancelableFetch(