mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-03 22:03:49 +02:00
add docs
This commit is contained in:
@@ -13,6 +13,10 @@ export abstract class Source {
|
|||||||
/** @internal */
|
/** @internal */
|
||||||
_sizePromise: Promise<number> | null = null;
|
_sizePromise: Promise<number> | null = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns promise that resolves with the size of the file.
|
||||||
|
* If the size is not known, it will be retrieved from the source.
|
||||||
|
*/
|
||||||
getSize() {
|
getSize() {
|
||||||
return this._sizePromise ??= this._retrieveSize();
|
return this._sizePromise ??= this._retrieveSize();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user