From ae9cf31ed2dba40e6ca7e2d21663d607168b4861 Mon Sep 17 00:00:00 2001 From: Vanilagy <1696106+Vanilagy@users.noreply.github.com> Date: Sat, 30 Aug 2025 15:02:19 +0200 Subject: [PATCH] Adjust comments --- src/source.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/source.ts b/src/source.ts index 431f91c..9737fd6 100644 --- a/src/source.ts +++ b/src/source.ts @@ -196,6 +196,8 @@ export type UrlSourceOptions = { /** * A function that returns the delay (in seconds) before retrying a failed request. The function is called * with the number of previous, unsuccessful attempts. If the function returns `null`, no more retries will be made. + * + * By default, it uses an exponential backoff algorithm that never fully gives up. */ getRetryDelay?: (previousAttempts: number) => number | null; @@ -204,9 +206,9 @@ export type UrlSourceOptions = { }; /** - * A source backed by a URL. This is useful for reading data from the network. Be careful using this source however, - * as it typically comes with increased latency. - * @beta + * A source backed by a URL. This is useful for reading data from the network. Requests will be made using an optimized + * reading and prefetching pattern to minimize request count and latency. + * @public */ export class UrlSource extends Source { /** @internal */