Skip to content

ResourceFormat.ReadAsync Method

Definition

Reads a resource file asynchronously.

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

Parameters

Name Type Description
stream Stream The stream to read.
cancellationToken CancellationToken An optional cancellation token.

Returns

Task<ResourceFile>

The file read from the stream.