Skip to content

ZXSpectrumTapeFormat<TFile>.ReadAsync Method

Definition

Reads a tape file from a stream asynchronously.

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

Parameters

Name Type Description
stream Stream The stream to read from.
cancellationToken CancellationToken An optional CancellationToken to cancel the reading.

Returns

Task<TFile>

The tape file read from the stream.