Skip to content

Commit a9e9719

Browse files
authored
Replaced 'T' type with 'TResult' (#8607)
1 parent 01e7ef8 commit a9e9719

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xml/System.Threading.Tasks/Task.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3056,7 +3056,7 @@ This method creates a <xref:System.Threading.Tasks.Task%601> object whose <xref:
30563056
30573057
To create a `Task` object that does not return a value, retrieve the `Task` object from the <xref:System.Threading.Tasks.Task.CompletedTask%2A> property.
30583058
3059-
Starting in .NET 6, for some `T` types and some result values, this method may return a cached singleton object rather than allocating a new object.
3059+
Starting in .NET 6, for some `TResult` types and some result values, this method may return a cached singleton object rather than allocating a new object.
30603060
30613061
## Examples
30623062
The following example is a command-line utility that calculates the number of bytes in the files in each directory whose name is passed as a command-line argument. Rather than executing a longer code path that instantiates a <xref:System.IO.FileStream> object and retrieves the value of its <xref:System.IO.FileStream.Length%2A?displayProperty=nameWithType> property for each file in the directory, the example simply calls the <xref:System.Threading.Tasks.Task.FromResult%2A> method to create a task whose <xref:System.Threading.Tasks.Task%601.Result%2A?displayProperty=nameWithType> property is zero (0) if a directory has no files.

0 commit comments

Comments
 (0)