mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 19:03:46 +02:00
add docs
This commit is contained in:
@@ -13,6 +13,10 @@ export abstract class Source {
|
||||
/** @internal */
|
||||
_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() {
|
||||
return this._sizePromise ??= this._retrieveSize();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user