danog\MadelineProto\ResumableDownloadStream
Author: Daniil Gentili daniil@daniil.it
A readable stream with the contents of a file downloaded from Telegram.
The stream can be serialized: once unserialized, the download is restarted from the end of the last chunk returned by {@see self::read()} before serialization.
The progress callback and the cancellation passed when creating the stream are not preserved by serialization.
Method list:
read(?\Amp\Cancellation $cancellation = NULL): ?stringisReadable(): boolclose(): voidisClosed(): boolonClose(\Closure $onClose): voidgetIterator(): \Traversable<int, string>
Methods:
read(?\Amp\Cancellation $cancellation = NULL): ?string
Parameters:
$cancellation:?\Amp\Cancellation
See also:
\Amp\Cancellation
isReadable(): bool
close(): void
isClosed(): bool
onClose(\Closure $onClose): void
Parameters:
$onClose:\Closure
See also:
\Closure
getIterator(): \Traversable<int, string>
See also:
\Traversable
Generated by danog/phpdoc