Skip to content

ZXSpectrumTapeFormat.ReadAsync Method ​

Definition ​

Reads a ZX Spectrum tape file from a stream asynchronously.

c#
public new Task<ZXSpectrumTapeFile> ReadAsync(Stream stream, CancellationToken cancellationToken = null);

Parameters ​

NameTypeDescription
streamStreamThe stream to read from.
cancellationTokenCancellationTokenAn optional CancellationToken to cancel the reading.

Returns ​

Task<ZXSpectrumTapeFile>

The tape file read from the stream.