LoadAsync
Last updated
Last updated
Purpose
: Loads data of type T asynchronously from a specified file path.
Parameters
:
key: A string for the file path.
cancellationToken: A token to signal cancellation of the load operation.
Return Value
: Returns a Task that contains the loaded data of type T or null if loading fails.
Sample uses: