Skip to content

ZXSpectrumRecordingFormat.ReadAsync Method ​

Definition ​

Reads a recording file from a stream asynchronously.

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

Parameters ​

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

Returns ​

Task<ZXSpectrumRecordingFile>

The recording file read from the stream.