mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-03 05:43:50 +02:00
Adjust comments
This commit is contained in:
+5
-3
@@ -196,6 +196,8 @@ export type UrlSourceOptions = {
|
|||||||
/**
|
/**
|
||||||
* A function that returns the delay (in seconds) before retrying a failed request. The function is called
|
* 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.
|
* 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;
|
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,
|
* A source backed by a URL. This is useful for reading data from the network. Requests will be made using an optimized
|
||||||
* as it typically comes with increased latency.
|
* reading and prefetching pattern to minimize request count and latency.
|
||||||
* @beta
|
* @public
|
||||||
*/
|
*/
|
||||||
export class UrlSource extends Source {
|
export class UrlSource extends Source {
|
||||||
/** @internal */
|
/** @internal */
|
||||||
|
|||||||
Reference in New Issue
Block a user