Skip to content

MusicFormat<TFile>.ReadAsync Method ​

Definition ​

Reads a music file asynchronously.

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

Parameters ​

NameTypeDescription
streamStreamThe stream to read.
cancellationTokenCancellationTokenAn optional cancellation token.

Returns ​

Task<TFile>

The file read from the stream.